Skip to content

Commit

Permalink
fix typo in LSCPU_OUTPUT
Browse files Browse the repository at this point in the history
  • Loading branch information
siggmo authored Dec 3, 2024
1 parent c7903f6 commit d29eaac
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -111,11 +111,11 @@ elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "x86_64")
target_compile_options(FANS_FANS PUBLIC -mavx2 -mfma)
elseif (CMAKE_SYSTEM_NAME STREQUAL "Linux")
# Linux: Check for AVX2 support using lscpu
execute_process(COMMAND lscpu OUTPUT_VARIABLE LSCU_OUTPUT ERROR_QUIET)
execute_process(COMMAND lscpu OUTPUT_VARIABLE LSCPU_OUTPUT ERROR_QUIET)

# Default to AVX; enable AVX2 if supported by hardware
set(FANS_USE_AVX2 FALSE)
if (LSCU_OUTPUT MATCHES "avx2")
if (LSCPU_OUTPUT MATCHES "avx2")
set(FANS_USE_AVX2 TRUE)
endif()

Expand Down

0 comments on commit d29eaac

Please sign in to comment.