Skip to content

Commit 16d7c60

Browse files
author
Raghuveer Devulapalli
authored
Merge pull request #187 from sterrettm2/fp16_build_fix
Fix avx512fp16 build
2 parents c612632 + 65a74f2 commit 16d7c60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/x86simdsort.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ static int check_cpu_feature_support(std::string_view cpufeature)
1111

1212
if ((cpufeature == "avx512_spr") && (!disable_avx512))
1313
#if defined(__FLT16_MAX__) && !defined(__INTEL_LLVM_COMPILER) \
14-
&& __clang_major__ >= 18
14+
&& (!defined(__clang_major__) || __clang_major__ >= 18)
1515
return __builtin_cpu_supports("avx512f")
1616
&& __builtin_cpu_supports("avx512fp16")
1717
&& __builtin_cpu_supports("avx512vbmi2");

0 commit comments

Comments
 (0)