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 9e6f42d commit 39901f2Copy full SHA for 39901f2
aten/src/ATen/native/mkldnn/Utils.h
@@ -97,7 +97,7 @@ constexpr bool mkldnn_bf16_device_check_arm() {
97
98
#if AT_MKLDNN_ENABLED()
99
inline bool mkldnn_bf16_device_check() {
100
-#if defined(__x86_64__)
+#if defined(__x86_64__) || (defined(_M_X64) && !defined(_M_ARM64EC))
101
// Use ideep to check bf16 on X64 as cpuinfo has no avx_ne_convert check.
102
return ideep::has_bf16_type_support();
103
#else
@@ -106,7 +106,7 @@ inline bool mkldnn_bf16_device_check() {
106
}
107
108
inline bool mkldnn_fp16_device_check() {
109
110
return ideep::has_fp16_type_support();
111
112
return false;
0 commit comments