cl::sycl::queue queue(cl::sycl::gpu_selector{});
std::cout << "Running on " << queue.get_device().get_info<cl::sycl::info::device::name>() << std::endl;
on a CPU system prints either:
./test1
Running on Intel(R) FPGA Emulation Device
or
env SYCL_DEVICE_TYPE=CPU ./test1
Running on Intel(R) Xeon(R) Platinum 8180 CPU @ 2.50GHz
I think it's supposed to be throwing an exception if there's not an available GPU device...