Compiler defines

Hi,
Are there compiler defines to tell that I’m compiling under computecpp?
Under CUDA I have NVCC and another one to tell host versus device and even target backend.
Haven’t found any documentation on them but I suspect there are such things.

Hi @DeanoC, the SYCL specification mentions a define of __SYCL_DEVICE_ONLY__ which can be used to determine when the device compiler is compiling your code. compute++ otherwise behaves like clang when not compiling for the device, though other compilers might behave differently.