I’m just getting started with SYCL and I’m trying to integrate it into an existing application. I created a function object that uses another class internally. If I inline both classes it works fine, but trying to separate header and implementation (as commonly done in C++) fails at run time because the implementation is not found by the kernel.
According to the Integration Guide, any file containing a kernel will be parsed by the compute++ compiler to generate the integration header. But how do I tell it to also parse the other .cpp files for code that is relevant to the kernel? I am using CMake.