Skip to content

[SYCL] gpu_selector not failing when no GPU devices #1679

@jbrodman

Description

@jbrodman
 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...

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions