8000 disable windows avx · OpenMS/OpenMS@656f280 · GitHub
[go: up one dir, main page]

Skip to content

Commit

Permalink
disable windows avx
Browse files Browse the repository at this point in the history
  • Loading branch information
poshul authored Feb 17, 2025
1 parent 06ca971 commit 656f280
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmake/compiler_flags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ message(STATUS "Processor is : ${CMAKE_SYSTEM_PROCESSOR}")
if (MSVC)
## enable 'AVX' on x86-64, to achive faster base64 en-/decoding via SIMDe
## note: MSVC lacks flags for SSE3/SSE4 (only unofficial ones like /d2archSSE42 are available, but SIMDe does not care about them)
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}")
##if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}")
## for SIMDe we need to use explicit compiler flags, which in turn define macros (like '#define __AVX__'), which SIMDe will check for and only then create vectorized code
## Disabling AVX will actually make the SIMDe code slower compared to the non-SSE version (for Base64 encoding/decoding at least)
add_compile_options(/arch:AVX)
endif()
##add_compile_options(/arch:AVX)
##endif()
else() ## GCC/Clang/AppleClang
## enable SSE3 on x86, to achive faster base64 en-/decoding
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "${x64_CPU}")
Expand Down Expand Up @@ -195,4 +195,4 @@ if (CXX_WARN_CONVERSION)
add_compile_options(-Wconversion)
endif()
endif()
message(STATUS " 3D2C Compiler checks for conversion: ${CXX_WARN_CONVERSION}")
message(STATUS "Compiler checks for conversion: ${CXX_WARN_CONVERSION}")

0 comments on commit 656f280

Please sign in to comment.
0