diff --git a/sycl/source/device_selector.cpp b/sycl/source/device_selector.cpp index 1b6c2d7bef7ad..9ca9e3d14a37a 100644 --- a/sycl/source/device_selector.cpp +++ b/sycl/source/device_selector.cpp @@ -6,6 +6,7 @@ // //===----------------------------------------------------------------------===// +#include #include #include #include @@ -54,12 +55,13 @@ int default_selector::operator()(const device &dev) const { } } + // override always wins + if (dev.get_info() == detail::get_forced_type()) + return 1000; + if (dev.is_gpu()) return 500; - if (dev.is_accelerator()) - return 400; - if (dev.is_cpu()) return 300;