Hello,
There has been a discussion about CMake integration with SYCL on the CMake project but as yet it has not quite been able to progress but you might want to add your support to such an effort. https ://gitlab.kitware.com/cmake/cmake/-/issues/21711
In the meantime there are some useful files here https ://github.com/KhronosGroup/SYCL-CTS/tree/SYCL-1.2.1/master/cmake
and then launch CLion from that same shell so all the required environment variables are passed to CLion and it’s subprocesses, you just have to select the DPC++ compiler in your toolchain.
Hello,
Turns out there was a bug in CLion that was preventing the compiler detection if you’re using clang++ (dpc++), we got it fixed in the latest EAP release. You need you enable the fix by setting cidr.compiler.clang.fsycl=true in the CLion’s registry.