Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
rafal-gorecki committed Feb 5, 2024
1 parent d486f90 commit a8c270d
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions husarion_utils/CMakeList.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,21 +48,21 @@ check_cxx_compiler_flag("-msse4.2" COMPILER_SUPPORTS_SSE4)
check_cxx_compiler_flag("-mavx2" COMPILER_SUPPORTS_AVX2)
check_cxx_compiler_flag("-mfma" COMPILER_SUPPORTS_FMA)

if(COMPILER_SUPPORTS_AVX512)
add_compile_options(-mno-avx512f)
endif()

if(COMPILER_SUPPORTS_SSE4)
add_compile_options(-msse4.2)
endif()

if(COMPILER_SUPPORTS_AVX2)
add_compile_options(-mavx2)
endif()

if(COMPILER_SUPPORTS_FMA)
add_compile_options(-mfma)
endif()
# if(COMPILER_SUPPORTS_AVX512)
# add_compile_options(-mno-avx512f)
# endif()
#
# if(COMPILER_SUPPORTS_SSE4)
# add_compile_options(-msse4.2)
# endif()
#
# if(COMPILER_SUPPORTS_AVX2)
# add_compile_options(-mavx2)
# endif()
#
# if(COMPILER_SUPPORTS_FMA)
# add_compile_options(-mfma)
# endif()

# If building one the same hardware to be deployed on, try `-march=native`!
# add_compile_options(-O3 -finline-limit=10000000 -ffp-contract=fast -ffast-math -mtune=generic)
Expand Down

0 comments on commit a8c270d

Please sign in to comment.