If you’re happy to use compute++
as your host compiler as well as device compiler (which is similar to what the CUDA CMake integration does with nvcc
, if I remember correctly), you can add the -sycl-driver
flag to your arguments and the add_sycl_to_target
step isn’t needed.