Closed ZzEeKkAa closed 3 weeks ago
Part of the code is compiled with clang++, so __INTEL_LLVM_COMPILER
can't be used there, so I don't know how to address it
Hi, @ZzEeKkAa. We have got a pr about it https://github.com/intel/torch-xpu-ops/pull/1017. We build torch-xpu-ops with separate compilation solution, compile host with gcc and compile device code with dpc++. And the macro is not a source-code-defined macro in SYCL headers but a dpc++ builtin. So the macro is not defined in host part as your changes. Please refer the pr pasted, we have a pre-process in cmake process to expose the macro.
PR #1017 does exactly what we need. Thank you!
Fixes: #1027