alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::trait::GetIdx< TIdx, origin::Grid, unit::Threads > Struct Template Reference

The grid thread index get trait specialization. More...

#include <Accessors.hpp>

Static Public Member Functions

template<typename TWorkDiv >
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto getIdx (TIdx const &idx, TWorkDiv const &workDiv)
 

Detailed Description

template<typename TIdx>
struct alpaka::trait::GetIdx< TIdx, origin::Grid, unit::Threads >

The grid thread index get trait specialization.

Definition at line 72 of file Accessors.hpp.

Member Function Documentation

◆ getIdx()

template<typename TIdx >
template<typename TWorkDiv >
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto alpaka::trait::GetIdx< TIdx, origin::Grid, unit::Threads >::getIdx ( TIdx const &  idx,
TWorkDiv const &  workDiv 
)
inlinestatic
Returns
The index of the current thread in the grid.

Definition at line 77 of file Accessors.hpp.


The documentation for this struct was generated from the following file: