device manager More...
#include <syclcompat/device.hpp>
Public Member Functions | |
device_ext & | current_device () |
device_ext & | cpu_device () const |
device_ext & | get_device (unsigned int id) const |
unsigned int | current_device_id () const |
void | select_device (unsigned int id) |
Select device with a device ID. More... | |
unsigned int | device_count () |
unsigned int | get_device_id (const sycl::device &dev) |
template<class DeviceSelector > | |
std::enable_if_t< std::is_invocable_r_v< int, DeviceSelector, const sycl::device & > > | select_device (const DeviceSelector &selector=sycl::gpu_selector_v) |
Select device with a Device Selector. More... | |
dev_mgr (const dev_mgr &)=delete | |
dev_mgr & | operator= (const dev_mgr &)=delete |
dev_mgr (dev_mgr &&)=delete | |
dev_mgr & | operator= (dev_mgr &&)=delete |
Static Public Member Functions | |
static dev_mgr & | instance () |
Returns the instance of device manager singleton. More... | |
device manager
Definition at line 626 of file device.hpp.
|
delete |
|
delete |
|
inline |
Definition at line 633 of file device.hpp.
Referenced by syclcompat::cpu_device().
|
inline |
Definition at line 628 of file device.hpp.
References current_device_id().
Referenced by syclcompat::create_queue(), syclcompat::get_current_device(), syclcompat::get_default_queue(), syclcompat::get_kernel_function_info(), and syclcompat::set_default_queue().
|
inline |
Definition at line 646 of file device.hpp.
References syclcompat::detail::get_tid().
Referenced by current_device(), and syclcompat::get_current_device_id().
|
inline |
Definition at line 662 of file device.hpp.
|
inline |
Definition at line 641 of file device.hpp.
Referenced by syclcompat::get_device().
|
inline |
Definition at line 664 of file device.hpp.
Referenced by syclcompat::get_device_id(), and select_device().
|
inlinestatic |
Returns the instance of device manager singleton.
Definition at line 688 of file device.hpp.
Referenced by syclcompat::cpu_device(), syclcompat::create_queue(), syclcompat::get_current_device(), syclcompat::get_current_device_id(), syclcompat::get_default_queue(), syclcompat::get_device(), syclcompat::get_device_id(), syclcompat::get_kernel_function_info(), syclcompat::select_device(), and syclcompat::set_default_queue().
References sycl::_V1::device::is_cpu().
|
inline |
Select device with a Device Selector.
selector | device selector to get the device id from. Defaults to sycl::gpu_selector_v |
Definition at line 681 of file device.hpp.
References get_device_id(), and select_device().
|
inline |
Select device with a device ID.
[in] | id | The id of the device which can be obtained through get_device_id(const sycl::device). |
Definition at line 657 of file device.hpp.
References syclcompat::detail::get_tid().
Referenced by select_device(), and syclcompat::select_device().