Skip to content

Commit f56a729

Browse files
committed
Disable SVS AVX512 for Valgrind Debug build
1 parent d1f3a72 commit f56a729

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/svs.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ endif()
99
# add_definitions(-DSVS_EXPERIMENTAL_LEANVEC)
1010
# endif()
1111

12+
# Valgrind does not support AVX512 and Valgrind in running in Debug
13+
# so disable it if we are in Debug mode
14+
string(TOUPPER "${CMAKE_BUILD_TYPE}" uppercase_CMAKE_BUILD_TYPE)
15+
if(uppercase_CMAKE_BUILD_TYPE STREQUAL "DEBUG")
16+
set(SVS_NO_AVX512 ON)
17+
endif()
18+
1219
if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "(x86_64)|(AMD64|amd64)")
1320
set(SVS_SUPPORTED 1)
1421
else()

0 commit comments

Comments
 (0)