Skip to content

Commit

Permalink
Update CMakeSetOptimizationAndAVX.cmake
Browse files Browse the repository at this point in the history
No need to define USE_AVX, all supported compilers define __AVX__
  • Loading branch information
alxvth authored Oct 5, 2024
1 parent b039cb4 commit af3d7e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmake/CMakeSetOptimizationAndAVX.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ macro(hdi_check_and_set_AVX target useavx)
else()
set(Check_AXV_CompileOption -mavx)
set(Check_AXV2_CompileOption -mavx2)
set(Set_AXV_CompileOption -mavx -mfma -DUSE_AVX2)
set(Set_AXV2_CompileOption -mavx2 -mfma -DUSE_AVX2)
set(Set_AXV_CompileOption -mavx -mfma)
set(Set_AXV2_CompileOption -mavx2 -mfma)
endif()

if(NOT DEFINED COMPILER_OPT_AVX_SUPPORTED OR NOT DEFINED COMPILER_OPT_AVX2_SUPPORTED)
Expand Down

0 comments on commit af3d7e1

Please sign in to comment.