File tree 1 file changed +9
-1
lines changed
1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -9,6 +9,14 @@ list(APPEND IPEX_CPU_CPP_ISA_SRCS_ORIGIN ${cpu_kernel_cpp_in})
9
9
# message(${file_path})
10
10
# endforeach()
11
11
12
+ if (MSVC AND ("${CMAKE_CXX_COMPILER_ID} " MATCHES "MSVC" ))
13
+ set (CXX_AVX512_VNNI_FOUND OFF )
14
+ set (CXX_AVX512_BF16_FOUND OFF )
15
+ set (CXX_AMX_FOUND OFF )
16
+ set (CXX_AVX2_VNNI_FOUND OFF )
17
+ set (CXX_AVX512_FP16_FOUND OFF )
18
+ endif ()
19
+
12
20
# Some versions of GCC pessimistically split unaligned load and store
13
21
# instructions when using the default tuning. This is a bad choice on
14
22
# new Intel and AMD processors so we disable it when compiling with AVX2.
@@ -84,7 +92,7 @@ if(CXX_AVX512_VNNI_FOUND)
84
92
list (APPEND CPU_CAPABILITY_FLAGS "${OPT_FLAG} /arch:AVX512" ) # TODO: CHECK HERE
85
93
else (MSVC )
86
94
list (APPEND CPU_CAPABILITY_FLAGS "${OPT_FLAG} -D__AVX512F__ ${AVX512_OPTIMIZE_FLAGS} -DCPU_CAPABILITY_AVX512 \
87
- -mavx512f -mavx512bw -mavx512vl -mavx512dq -mavx512vnni -mfma" )
95
+ -mavx512f -mavx512bw -mavx512vl -mavx512dq -mavx512vnni -mfma" )
88
96
endif (MSVC )
89
97
else (CXX_AVX512_VNNI_FOUND)
90
98
if (CMAKE_COMPILER_IS_GNUCXX)
You can’t perform that action at this time.
0 commit comments