We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 44de3c3 commit 26ad002Copy full SHA for 26ad002
src/cpu/cpu_engine.hpp
@@ -37,7 +37,10 @@
37
impl_list_item_t( \
38
impl_list_item_t::type_deduction_helper_t<__VA_ARGS__::pd_t>())
39
#define CPU_INSTANCE(...) DNNL_PRIMITIVE_IMPL(CPU_INSTANCE_IMPL, __VA_ARGS__)
40
-#define CPU_INSTANCE_X64(...) DNNL_X64_ONLY(CPU_INSTANCE(__VA_ARGS__))
+// 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__))
44
#define CPU_INSTANCE_SSE41(...) REG_SSE41_ISA(CPU_INSTANCE(__VA_ARGS__))
45
#define CPU_INSTANCE_AVX2(...) REG_AVX2_ISA(CPU_INSTANCE(__VA_ARGS__))
46
#define CPU_INSTANCE_AVX512(...) REG_AVX512_ISA(CPU_INSTANCE(__VA_ARGS__))
0 commit comments