◆ device_prop() [1/2]
xpu::device_prop::device_prop |
( |
| ) |
|
|
delete |
◆ device_prop() [2/2]
xpu::device_prop::device_prop |
( |
device |
| ) |
|
Query properties of the given device.
◆ arch()
std::string_view xpu::device_prop::arch |
( |
| ) |
const |
|
inline |
Returns the architecture of the device, if applicable.
◆ backend()
driver_t xpu::device_prop::backend |
( |
| ) |
const |
|
inline |
Get the backend associated with the device.
◆ const_mem_size()
size_t xpu::device_prop::const_mem_size |
( |
| ) |
const |
|
inline |
Returns the size of constant memory in bytes.
◆ device_nr()
int xpu::device_prop::device_nr |
( |
| ) |
const |
|
inline |
Get the device number within the backend.
◆ global_mem_available()
size_t xpu::device_prop::global_mem_available |
( |
| ) |
const |
|
inline |
Returns the amount of global memory available in bytes.
◆ global_mem_total()
size_t xpu::device_prop::global_mem_total |
( |
| ) |
const |
|
inline |
Returns the total amount of global memory in bytes.
◆ id()
int xpu::device_prop::id |
( |
| ) |
const |
|
inline |
◆ max_grid_size()
std::array<size_t, 3> xpu::device_prop::max_grid_size |
( |
| ) |
const |
|
inline |
Returns the max number of threads in a block.
◆ max_threads_per_block()
size_t xpu::device_prop::max_threads_per_block |
( |
| ) |
const |
|
inline |
Returns the max number of threads in a block.
◆ name()
std::string_view xpu::device_prop::name |
( |
| ) |
const |
|
inline |
Get the name of the device.
◆ shared_mem_size()
size_t xpu::device_prop::shared_mem_size |
( |
| ) |
const |
|
inline |
Returns the size of shared memory per block in bytes.
◆ warp_size()
size_t xpu::device_prop::warp_size |
( |
| ) |
const |
|
inline |
Returns the number of threads in a warp.
◆ xpuid()
std::string_view xpu::device_prop::xpuid |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: