The device_selector class provides ability to choose the best SYCL device based on heuristics specified by the user. More...
#include <CL/sycl/device_selector.hpp>
Public Member Functions | |
virtual | ~device_selector ()=default |
virtual device | select_device () const |
virtual int | operator() (const device &device) const =0 |
Static Protected Attributes | |
static constexpr int | REJECT_DEVICE_SCORE = -1 |
The device_selector class provides ability to choose the best SYCL device based on heuristics specified by the user.
Definition at line 28 of file device_selector.hpp.
|
virtualdefault |
|
pure virtual |
|
virtual |
Reimplemented in cl::sycl::ext::oneapi::filter_selector.
Definition at line 53 of file device_selector.cpp.
References cl::sycl::device::get_info(), cl::sycl::getDevicePreference(), cl::sycl::detail::pi::PI_TRACE_ALL, cl::sycl::detail::pi::PI_TRACE_BASIC, and cl::sycl::detail::pi::trace().
Referenced by cl::sycl::device::device(), cl::sycl::platform::platform(), and cl::sycl::ext::oneapi::filter_selector::select_device().
|
staticconstexprprotected |
Definition at line 31 of file device_selector.hpp.