Skip to content

Commit 9d46c28

Browse files
committed
Map avx512 detection to CPU
1 parent 1de854c commit 9d46c28

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/linux.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ jobs:
131131
export XSIMD_TEST_CPU_ASSUME_AVX512F="1"
132132
../../sde-external-9.48.0-2024-11-25-lin/sde64 -tgl -- ./test_xsimd
133133
else
134-
# Explicitly assume the runner will not have avx512, which may change in the future
135-
export XSIMD_TEST_CPU_ASSUME_AVX512F="0"
134+
export XSIMD_TEST_CPU_ASSUME_AVX512F=$(grep -q 'avx512f' /proc/cpuinfo && echo "1" || echo "0")
136135
./test_xsimd
137136
fi

0 commit comments

Comments
 (0)