Skip to content

Commit 26ad002

Browse files
committed
Fix Windows+CPU Plugin+CC compile fail issue.
Squash all commit to one. Signed-off-by: Yan, Xiping <xiping.yan@intel.com>
1 parent 44de3c3 commit 26ad002

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cpu/cpu_engine.hpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@
3737
impl_list_item_t( \
3838
impl_list_item_t::type_deduction_helper_t<__VA_ARGS__::pd_t>())
3939
#define CPU_INSTANCE(...) DNNL_PRIMITIVE_IMPL(CPU_INSTANCE_IMPL, __VA_ARGS__)
40-
#define CPU_INSTANCE_X64(...) DNNL_X64_ONLY(CPU_INSTANCE(__VA_ARGS__))
40+
// Expanding DNNL_X64_ONLY in order to fix Conditional Compilation failure on Windows + CPU plugin.
41+
// DNNL_X64_ONLY == CONCAT2(Z_DO_IF_, DNNL_X64)
42+
#define CPU_INSTANCE_X64(...) \
43+
CONCAT2(Z_DO_IF_, DNNL_X64)(CPU_INSTANCE(__VA_ARGS__))
4144
#define CPU_INSTANCE_SSE41(...) REG_SSE41_ISA(CPU_INSTANCE(__VA_ARGS__))
4245
#define CPU_INSTANCE_AVX2(...) REG_AVX2_ISA(CPU_INSTANCE(__VA_ARGS__))
4346
#define CPU_INSTANCE_AVX512(...) REG_AVX512_ISA(CPU_INSTANCE(__VA_ARGS__))

0 commit comments

Comments
 (0)