Can regular compiler(like g++ or clang++) compile sycl runtime api or not?

icpx can compile the sycl codes into shared library *.so, right?
If I want to link such so, can I use a regular compiler toolkit like g++ instead of icpx?
I mean seperate compilation like NVIDIA CUDA Compiler Driver

Hi @alanzhai219,

if you use icpx to make the shared object, then any normal linker will be able to link to it (provided you specify the correct header locations of e.g. the SYCL headers). If you are making the shared object though that will require icpx because of certain special handling required for the kernels at link time (which is why you need to add -fsycl to your link command as well).

I hope that helps,
Duncan.