Skip to content

Commit 220bae8

Browse files
authored
Merge pull request #435 from JohanMabille/avx512
Fixed AVX512 detection with clang
2 parents f48de3b + 59077b8 commit 220bae8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/xsimd/config/xsimd_instruction_set.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
// AVX512 instructions are supported starting with gcc 6
107107
// see https://www.gnu.org/software/gcc/gcc-6/changes.html
108108
#if !defined(XSIMD_X86_INSTR_SET) && (defined(__AVX512__) || defined(__KNCNI__) || defined(__AVX512F__)\
109-
&& (!defined(__GNUC__) || __GNUC__ >= 6))
109+
&& (defined(__clang__) || (!defined(__GNUC__) || __GNUC__ >= 6)))
110110
#define XSIMD_X86_INSTR_SET XSIMD_X86_AVX512_VERSION
111111

112112
#if defined(__AVX512VL__)

0 commit comments

Comments
 (0)