Skip to content

Commit

Permalink
AVX2 causes crashes with older compilers on build servers :-(
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Smith committed Dec 20, 2023
1 parent c40ea14 commit fdd40c8
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions cmake/CodaBuild.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,15 @@ macro(coda_initialize_build)
set(CMAKE_CXX_EXTENSIONS OFF)

# Turn on AVX2 by default ... it's from 2013.
if (NOT ENABLE_AVX512F)
if (NOT DISABLE_AVX2)
set(ENABLE_AVX2 true)
endif()
endif()
# Well, no :-( ... it seems to cause crashes w/older
# compilers on build servers. :-(
set(ENABLE_AVX2 false)
set(ENABLE_AVX512F false)
#if (NOT ENABLE_AVX512F)
# if (NOT DISABLE_AVX2)
# set(ENABLE_AVX2 true)
# endif()
#endif()

# MSVC-specific flags and options.
if (MSVC)
Expand Down

0 comments on commit fdd40c8

Please sign in to comment.