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 fcb8456 commit c5e1894Copy full SHA for c5e1894
csrc/cpu_ops.h
@@ -319,12 +319,12 @@ static inline bool has_avx512bf16() {
319
return v;
320
}
321
#else
322
-bool has_avx512f() {
+static inline bool has_avx512f() {
323
static const bool supported_avx512f = __builtin_cpu_supports("avx512f");
324
return supported_avx512f;
325
326
327
-bool has_avx512bf16() {
+static inline bool has_avx512bf16() {
328
static const bool supported_avx512bf16 = __builtin_cpu_supports("avx512bf16");
329
return supported_avx512bf16;
330
0 commit comments