From 7ebbec541b7fb7c46a0c951536fc2d259720e797 Mon Sep 17 00:00:00 2001 From: Chin-Chang Yang <2770271+ChinChangYang@users.noreply.github.com> Date: Fri, 24 Nov 2023 07:42:59 +0800 Subject: [PATCH] Add warning for Intel-based processors - Provides a warning message for users running cmake on an Intel-based processor, stating that it may encounter performance issues. - Recommends switching to a cmake version designed for ARM64 architecture for optimal performance. --- cpp/CMakeLists.txt-macos | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/CMakeLists.txt-macos b/cpp/CMakeLists.txt-macos index c48f62775..9e0eec907 100644 --- a/cpp/CMakeLists.txt-macos +++ b/cpp/CMakeLists.txt-macos @@ -287,3 +287,7 @@ message(STATUS "Enabling AppleClang-specific build options.") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wnull-dereference -Wdangling-else") target_include_directories(katago PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) + +if("${CMAKE_SYSTEM_PROCESSOR}" STREQUAL "x86_64") + message(WARNING "You are currently running cmake on an Intel-based processor. It is known that running KataGo in this configuration may encounter performance issues. It is recommended to switch to a cmake version designed for ARM64 architecture for optimal performance.") +endif()