Closed Gardene-el closed 7 months ago
Wondering if there are path conflicts between SYCL and the other dependencies.
A few questions to help with diagnosing the problem:
Which oneAPI SDK version are you using?
2023.2.0
. Since I installed it on archlinux, it is a package on pacman.
Here is the path file generated by tree, if is needed. They are in /opt/intel
:
tree.txt
tree-d.txt
Does the same problem occur if you turn off the build options for the CUDA and HIP backend? Yes, nothing changed. The following log: log.txt
I found the problem. SYCL works with the include path path/to/include/
, but the ./configure-cmake.sh
set the include path path/to/include/sycl/
, then the error occured.
Apologies for not catching this sooner, but it also looks like you are cross-compiling (using /usr/bin/clang
instead of icpx
).
After updating the include paths, this should work, but you will still want to set OCCA_DPCPP_COMPILER=icpx
at run time.
Thanks for reply :)
The problem indeed is that I'm using clang instead of icpx. By replacing CXX=clang++
with CXX=icpx
in CC=clang CXX=clang++ ENABLE_OPENMP="OFF" ./configure-cmake.sh
, the building succeed.
I was following the installation guide to build occa. When building, the error mentioned above occured and idk how to fix it. If the infomation is not sufficient, please ask me to provide more.
Here is the log: