Template Function ripple::global_size¶
Defined in File thread_index.hpp
Function Documentation¶
-
template<typename
Dim
>
autoripple
::
global_size
(Dim &&dim) noexcept -> size_t¶ Gets the value of the global size of the grid (number of threads in the grid) in a given dimension.
The dimension must be one of dim_x, dim_y, dim_z, or a value specifting the index of the dimension.
- Note
This is the size of the grid local to the device on which the code is executing. If there are multiple devices being used, each has its own size.
- Return
The global size of the grid in the given dimension (number of threads).
- Parameters
dim
: the dimension to get the block size for.
- Template Parameters
Dim
: the type of the dimension specifier.