![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Properties of a device. More...
#include <DeviceProperties.hpp>
Public Member Functions | |
| template<uint32_t T_dim> | |
| Vec< uint32_t, T_dim > | getMaxBlocksPerGrid () const |
| Maximum number of blocks within a grid for each dimension. | |
| template<uint32_t T_dim> | |
| Vec< uint32_t, T_dim > | getMaxThreadsPerBlock () const |
| Maximum number of threads within a thread block for each dimension. | |
| auto | getName () const |
Public Attributes | |
| size_t | globalMemCapacityBytes |
| The total amount of global device memory in bytes. | |
| uint32_t | maxBlocksPerGrid |
| The maximum total number of blocks within a grid. | |
| uint32_t | maxThreadsPerBlock |
| The maximum total number of threads per thread block. | |
| uint32_t | multiProcessorCount |
| The number of multiprocessors. | |
| std::string | name |
| The name of the device. | |
| uint32_t | sharedMemPerBlockBytes |
| The amount of shared memory per thread block in bytes. | |
| uint32_t | warpSize |
| The warp size. | |
Properties of a device.
Collection of static properties of a device.
Definition at line 28 of file DeviceProperties.hpp.
|
inline |
Maximum number of blocks within a grid for each dimension.
| T_dim | Number of dimensions used for a kernel call. |
Definition at line 88 of file DeviceProperties.hpp.
|
inline |
Maximum number of threads within a thread block for each dimension.
| T_dim | Number of dimensions used for a kernel call. |
Definition at line 68 of file DeviceProperties.hpp.
|
inline |
Definition at line 30 of file DeviceProperties.hpp.
| size_t alpaka::onHost::DeviceProperties::globalMemCapacityBytes |
The total amount of global device memory in bytes.
Device memory is the physical memory of the compute device. On systems with a GPU which is sharing the memory with the host CPU, this value may be equal to the total amount of system memory.
Definition at line 43 of file DeviceProperties.hpp.
| uint32_t alpaka::onHost::DeviceProperties::maxBlocksPerGrid |
The maximum total number of blocks within a grid.
Definition at line 76 of file DeviceProperties.hpp.
| uint32_t alpaka::onHost::DeviceProperties::maxThreadsPerBlock |
The maximum total number of threads per thread block.
Definition at line 56 of file DeviceProperties.hpp.
| uint32_t alpaka::onHost::DeviceProperties::multiProcessorCount |
The number of multiprocessors.
Definition at line 49 of file DeviceProperties.hpp.
| std::string alpaka::onHost::DeviceProperties::name |
The name of the device.
Definition at line 47 of file DeviceProperties.hpp.
| uint32_t alpaka::onHost::DeviceProperties::sharedMemPerBlockBytes |
The amount of shared memory per thread block in bytes.
Definition at line 45 of file DeviceProperties.hpp.
| uint32_t alpaka::onHost::DeviceProperties::warpSize |
The warp size.
Number of threads per thread block that are executed in lock-step.
Definition at line 54 of file DeviceProperties.hpp.