We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 583ddf9 commit 3899385Copy full SHA for 3899385
lib/x86simdsort.cpp
@@ -8,9 +8,13 @@
8
static int check_cpu_feature_support(std::string_view cpufeature)
9
{
10
if (cpufeature == "avx512_spr")
11
+#ifdef __FLT16_MAX__
12
return __builtin_cpu_supports("avx512f")
13
&& __builtin_cpu_supports("avx512fp16")
14
&& __builtin_cpu_supports("avx512vbmi2");
15
+#else
16
+ return 0;
17
+#endif
18
else if (cpufeature == "avx512_icl")
19
20
&& __builtin_cpu_supports("avx512vbmi2")
0 commit comments