I'm trying to run a small piece of code using SYCL but it keeps crashing.
Here is a minimal example reproducing the problem.
#include <CL/sycl.hpp>
class vector_addition;
int main(int, char**) {
cl::sycl::default_selector device_selector;
cl::sycl::queue queue(device_selector);
{
queue.submit([&] (cl::sycl::handler& cgh) {});
}
return 0;
}
The problem comes from the function queue.submit
which throws a cl::sycl::exception
.
It happens even if the function is not empty and contains things that should not cause problems. The device name I obtain is also the name of the GPU I would like to use.
Thanks!