Problem with host_task (old interop_task) to embed a CUDA kernel within SYCL code

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: 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.]
[opencl:cpu:1] Intel(R) OpenCL, Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz 3.0 [2022.]
[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:

/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 -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!


Hi Rafa,
Is it possible to confirm if it is just this example that fails to build besides the vector_addition example?
I have passed this issue onto second support who are closer to the development of the examples.

It seems there is a bug with this example. The file is not included with the oneAPI toolkit. It looks like it should be.
ATM is is shipped with dpct, not the compiler. We have noted the issue to be resolved for the next oneAPI release.
Sorry for any inconvenience.