Skip to content

Commit a40989b

Browse files
authored
Merge pull request ERGO-Code#2790 from ERGO-Code/valgrind-avx
Better handling of AVX512 for Valgrind
2 parents 1cc85a6 + 9747528 commit a40989b

3 files changed

Lines changed: 12 additions & 1 deletion

File tree

.github/workflows/valgrind-hipo.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
run: |
2222
cmake $GITHUB_WORKSPACE -DHIPO=ON \
2323
-DBUILD_OPENBLAS=ON \
24+
-DNO_AVX512=ON \
2425
-DCMAKE_BUILD_TYPE=Debug \
2526
-DALL_TESTS=ON
2627

CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,10 @@ option(HIPO "Build HIPO" OFF)
152152
message(STATUS "Build HIPO: ${HIPO}")
153153
option(BUILD_OPENBLAS "Build OpenBLAS" OFF)
154154
message(STATUS "Build OpenBLAS: ${BUILD_OPENBLAS}")
155+
option(NO_AVX512 "Build OpenBLAS without AVX512" OFF)
156+
if (NO_AVX512)
157+
message(STATUS "Build OpenBLAS without AVX512: ON")
158+
endif()
155159

156160
if (HIPO AND CSHARP)
157161
message(ERROR "HIPO is only available in C++. Not yet supported in C#.")

cmake/FindHipoDeps.cmake

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,13 @@ if (BUILD_OPENBLAS)
125125
set(NO_AVX512 ON CACHE BOOL "Disable AVX512" FORCE)
126126
# set(CMAKE_C_FLAGS_OPENBLAS "-DTARGET=HASWELL -DNO_AVX512=1")
127127
else()
128-
message(STATUS " NOT Skylake")
128+
message(STATUS "NOT Skylake")
129+
endif()
130+
131+
if(NO_AVX512)
132+
message(STATUS "NO_AVX512 - adjusting OpenBLAS possibly for valgrind")
133+
set(NO_AVX512 ON CACHE BOOL "Disable AVX512" FORCE)
134+
# set(CMAKE_C_FLAGS_OPENBLAS "-DTARGET=HASWELL -DNO_AVX512=1")
129135
endif()
130136
endif()
131137

0 commit comments

Comments
 (0)