Execution policy/instruction for CUDA kernel execution. More...
Public Member Functions | |
ExecutionPolicy () | |
template<typename... Arguments> | |
ExecutionPolicy (int n, void(*f)(Arguments...), Arguments ...args) | |
Automatically calculate best execution policy. More... | |
ExecutionPolicy (dim3 _gridSize, dim3 _blockSize, size_t _sharedMemBytes) | |
Constructor for manually setting grid and block size as well as shared memory bytes. More... | |
ExecutionPolicy (dim3 _gridSize, dim3 _blockSize) | |
Constructor for manually setting grid and block size as well as shared memory bytes. More... | |
Public Attributes | |
dim3 | gridSize |
grid size More... | |
dim3 | blockSize |
block size More... | |
size_t | sharedMemBytes |
shared memory (bytes) More... | |
Execution policy/instruction for CUDA kernel execution.
Definition at line 33 of file cuda_launcher.cuh.
ExecutionPolicy::ExecutionPolicy | ( | ) |
Definition at line 4 of file cuda_launcher.cu.
|
inline |
Automatically calculate best execution policy.
Calculate best execution policy in means of maximizing occupancy.
Arguments | CUDA kernel arguments |
n | Particle number to be iterated or more general outer SIMD iteration number. |
f | CUDA kernel (function pointer) |
args | Arguments of CUDA kernel |
Definition at line 62 of file cuda_launcher.cuh.
ExecutionPolicy::ExecutionPolicy | ( | dim3 | _gridSize, |
dim3 | _blockSize, | ||
size_t | _sharedMemBytes | ||
) |
Constructor for manually setting grid and block size as well as shared memory bytes.
_gridSize | grid size |
_blockSize | block size |
_sharedMemBytes | shared memory bytes |
Definition at line 6 of file cuda_launcher.cu.
ExecutionPolicy::ExecutionPolicy | ( | dim3 | _gridSize, |
dim3 | _blockSize | ||
) |
Constructor for manually setting grid and block size as well as shared memory bytes.
_gridSize | grid size |
_blockSize | block size |
Definition at line 9 of file cuda_launcher.cu.
dim3 ExecutionPolicy::blockSize |
block size
Definition at line 42 of file cuda_launcher.cuh.
dim3 ExecutionPolicy::gridSize |
grid size
Definition at line 40 of file cuda_launcher.cuh.
size_t ExecutionPolicy::sharedMemBytes |
shared memory (bytes)
Definition at line 44 of file cuda_launcher.cuh.