triSYCL
triSYCL copied to clipboard
problem with queue constructor in tests
I've got a branch with most of the queue code implemented in it
However in OpenCL builds now most of the unit tests fail, because from my spec reading the default queue should be the result of the default selector, which says it will pick a host queue if a suitable CL queue can't be found. So in my system it picks a pocl backed CL queue, then the kernel won't execute
cl::sycl::detail::kernel &get_kernel() { if (!kernel) throw non_cl_error("Cannot use an OpenCL kernel in this context");
gets shown.
Just filing this in case anyone has any ideas,
I suppose until we have a device compiler and we know we are building with it it might just make sense to deafult to the host queue,
The simple case : if not compiled with OpenCL support, just use the host.
The interesting case for you: perhaps adding a TRISYCL_...
compilation macro to use the compliant or non compliant behaviour?
As you said, if there is no full-fledged device compiler, having the current behaviour by default and specify an option when running the CTS?