|
xpu
|
Public Member Functions | |
| device () | |
| Construct CPU device. More... | |
| device (std::string_view xpuid) | |
| Lookup device by string. More... | |
| device (int id) | |
| Construct device from device id. More... | |
| device (driver_t driver, int device_nr) | |
| Construct device from driver and device number. More... | |
| device (const device &)=default | |
| device (device &&)=default | |
| device & | operator= (const device &)=default |
| device & | operator= (device &&)=default |
| int | id () const |
| Get the device id. More... | |
| driver_t | backend () const |
| Get the backend associated with the device. More... | |
| int | device_nr () const |
| Get the device number within the backend. More... | |
| device (detail::device impl) | |
| detail::device & | impl () |
Static Public Member Functions | |
| static std::vector< device > | all () |
| Get all available devices. More... | |
| static device | active () |
| Get the active device. More... | |
Represents a device found on the system.
| xpu::device::device | ( | ) |
Construct CPU device.
|
explicit |
Lookup device by string.
|
explicit |
Construct device from device id.
| id | Device id. The device id is a unique number assigned to each device. It is also the index of the device in the vector returned by device::all(). |
|
explicit |
Construct device from driver and device number.
|
default |
|
default |
|
inlineexplicit |
|
static |
Get the active device.
|
static |
Get all available devices.
|
inline |
Get the backend associated with the device.
|
inline |
Get the device number within the backend.
|
inline |
Get the device id.
|
inline |