Open troy818 opened 1 year ago
@jingxu10 @xuhancn
Please take a look.
when you compiled your sycl code, did you source full oneapi package environment or just dpcpp compiler and mkl environments?
Hi @jingxu10, At first time, I just source dpcpp and mkl, and I got the "libtbb.so.12" error. And after I source full oneapi package environment when compiling sycl code, I got the "No kernel named" error.
Is there a reproducer that we can test at our side?
Hi @jingxu10,
Here is my code: https://github.com/troy818/nerfacc_dpcpp/tree/ipex-xpu
It uses set.py
to build and install, and the dpcpp kernel is in csrc.
For the test, you can use packet_build_install.sh
Hi @troy818 Could you try to change below 2 "icpx" to "dpcpp" in your local intel_extension_for_pytorch/xpu/cpp_extension.py and run packet_build_install.sh again?
Hi @huiyan2021, I'm using ipex 1.13.10+xpu, and my local intel_extension_for_pytorch/xpu/cpp_extension.py is just "dpcpp". I also try this using ipex 1.13.120+xpu The issue is the same, no matter using "dpcpp" or "icpx".
change this line: https://github.com/troy818/nerfacc_dpcpp/blob/ipex-xpu/setup.py#L45 to: cmdclass={"build_ext": DpcppBuildExtension.with_options(use_ninja=False)} if not BUILD_NO_DPCPP else {},
Hi huiyan2021, I've tried to change the cmdclass, but the issue is still the same.
@troy818 Did you change https://github.com/troy818/nerfacc_dpcpp/blob/ipex-xpu/nerfacc/pack.py#L10?
# import nerfacc.cuda as _C
import nerfacc.csrc as _C
also, please remove build
folder and run packet_build_install.sh again
This is the output at my side:
Hi @huiyan2021 ,
The key is the use_ninja=False
right?
No matter with or without the change from import nerfacc.cuda
to import nerfacc.csrc
, if you don't set use_ninja
to false, the kernel lost will happen.
(I foget to remove build
folder for the code change)
Need below 2 walkarounds at the time being:
Hi @huiyan2021 , Agree and thanks for your help.
Describe the bug
Hi, I'm trying to run a Pytorch program with the IPEX DPC++ extension. And I face this error when using JIT Compiling Extensions.
Then, I source oneapi/tbb (version 2023.0) and want to solve this error, but I get another error:
My sycl code is blow:
Reference: https://github.com/intel/llvm/issues/6421 https://github.com/intel/intel-extension-for-pytorch/issues/330
Versions
The versions is :
Thanks!