![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Backend-specific description of the actual block and thread launch shape. More...
#include <ThreadSpec.hpp>
Public Types | |
| using | index_type = typename T_NumBlocks::type |
| using | NumBlocksVecType = typename T_NumBlocks::UniVec |
| using | NumThreadsVecType = T_NumThreads |
Public Member Functions | |
| constexpr | ThreadSpec (T_NumBlocks const &numBlocks, T_NumThreads const &numThreadsPerBlock, T_Executor executor=T_Executor{}) |
| constexpr NumBlocksVecType const & | getNumBlocks () const noexcept |
| constexpr NumThreadsVecType const & | getNumThreads () const noexcept |
Static Public Member Functions | |
| static consteval uint32_t | dim () |
| static constexpr T_Executor | getExecutor () |
Backend-specific description of the actual block and thread launch shape.
A thread specification directly describes the number of blocks and the number of threads per block that are passed to the backend. This is the closest alpaka equivalent to a CUDA grid/block launch configuration.
In contrast to alpaka::onHost::FrameSpec, a ThreadSpec is not a logical frame decomposition. It is used when a kernel requires exact guarantees about the number of blocks and the size of each block.
| T_Executor | If the executor is alpaka::exec::AnyExecutor alpaka will select a good fitting executor for the action where the ThreadSpec is used. |
Definition at line 32 of file ThreadSpec.hpp.
| using alpaka::onHost::ThreadSpec< T_NumBlocks, T_NumThreads, T_Executor >::index_type = typename T_NumBlocks::type |
Definition at line 34 of file ThreadSpec.hpp.
| using alpaka::onHost::ThreadSpec< T_NumBlocks, T_NumThreads, T_Executor >::NumBlocksVecType = typename T_NumBlocks::UniVec |
Definition at line 35 of file ThreadSpec.hpp.
| using alpaka::onHost::ThreadSpec< T_NumBlocks, T_NumThreads, T_Executor >::NumThreadsVecType = T_NumThreads |
Definition at line 36 of file ThreadSpec.hpp.
|
inlineconstexpr |
Definition at line 43 of file ThreadSpec.hpp.
|
inlinestaticnodiscardconsteval |
Definition at line 68 of file ThreadSpec.hpp.
|
inlinestaticnodiscardconstexpr |
Definition at line 53 of file ThreadSpec.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 63 of file ThreadSpec.hpp.
|
inlinenodiscardconstexprnoexcept |
Definition at line 58 of file ThreadSpec.hpp.