We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee49926 commit f301ef4Copy full SHA for f301ef4
CMakeLists.txt
@@ -15,8 +15,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED 17)
15
16
include(CheckCXXCompilerFlag)
17
18
-# Function to check if the CPU is AMD and not older than family 25
19
-function(check_amd_family_25_or_newer)
+# Function to check if the CPU supports bmi2
+function(check_bmi2_support)
20
execute_process(
21
COMMAND awk "/^vendor_id/{{print \$3; exit}}" /proc/cpuinfo
22
OUTPUT_VARIABLE VENDOR_ID
@@ -43,7 +43,7 @@ function(check_amd_family_25_or_newer)
43
endif()
44
endfunction()
45
46
-check_amd_family_25_or_newer()
+check_bmi2_support()
47
48
if(CPU_SUPPORTS_BMI2)
49
message(STATUS "Adding BMI2 support")
0 commit comments