Hi all,
I have a linux box with oneAPI 2023.0 and the latest CUDA plugin from Codeplay. I have a problem compiling the examples/cuda_interop project from this repo: https://github.com/codeplaysoftware/SYCL-For-CUDA-Examples. The simpler project example/vector_addition compiles and runs well.
The output of sycl-ls:
[opencl:acc:0] Intel(R) FPGA Emulation Platform for OpenCL(TM), Intel(R) FPGA Emulation Device 1.2 [2022.15.12.0.01_081451]
[opencl:cpu:1] Intel(R) OpenCL, Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz 3.0 [2022.15.12.0.01_081451]
[opencl:gpu:2] Intel(R) OpenCL HD Graphics, Intel(R) UHD Graphics 630 [0x3e98] 3.0 [21.33.20678]
[ext_oneapi_level_zero:gpu:0] Intel(R) Level-Zero, Intel(R) UHD Graphics 630 [0x3e98] 1.1 [1.1.20678]
[ext_oneapi_cuda:gpu:0] NVIDIA CUDA BACKEND, NVIDIA GeForce RTX 2060 0.0 [CUDA 11.4]
The compilation error:
coffeelake:~/oneapi/SYCL-For-CUDA-Examples/examples/cuda_interop>make
/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/clang++ -std=c++17 --cuda-gpu-arch=sm_60 -I/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../include/ -I/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../include/sycl/ -Wno-linker-warnings -g vec_add.cu -L/opt/intel/oneapi/compiler/2023.0.0/linux/bin-llvm/../lib -lOpenCL -lsycl -L/usr/local/cuda//lib64 -lcudart -o vec_add.exe
**<built-in>:1:10:** **fatal error:** **'__clang_cuda_runtime_wrapper.h' file not found**
#include "__clang_cuda_runtime_wrapper.h"
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated when compiling for sm_60.
make: *** [Makefile:43: vec_add.exe] Error 1
Thanks a lot in advance for any help you can provide!
Rafa.