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

The grid block index get trait specialization for classes with IdxGbBase member type. More...

#include <Accessors.hpp>

Public Types

using ImplementationBase = concepts::ImplementationBase< ConceptIdxGb, TIdxGb >
 

Static Public Member Functions

template<typename TWorkDiv >
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto getIdx (TIdxGb const &idx, TWorkDiv const &workDiv) -> Vec< Dim< ImplementationBase >, Idx< ImplementationBase >>
 

Detailed Description

template<typename TIdxGb>
struct alpaka::trait::GetIdx< TIdxGb, origin::Grid, unit::Blocks >

The grid block index get trait specialization for classes with IdxGbBase member type.

Definition at line 40 of file Accessors.hpp.

Member Typedef Documentation

◆ ImplementationBase

template<typename TIdxGb >
using alpaka::trait::GetIdx< TIdxGb, origin::Grid, unit::Blocks >::ImplementationBase = concepts::ImplementationBase<ConceptIdxGb, TIdxGb>

Definition at line 42 of file Accessors.hpp.

Member Function Documentation

◆ getIdx()

template<typename TIdxGb >
template<typename TWorkDiv >
ALPAKA_NO_HOST_ACC_WARNING static ALPAKA_FN_HOST_ACC auto alpaka::trait::GetIdx< TIdxGb, origin::Grid, unit::Blocks >::getIdx ( TIdxGb const &  idx,
TWorkDiv const &  workDiv 
) -> Vec<Dim<ImplementationBase>, Idx<ImplementationBase>>
inlinestatic
Returns
The index of the current thread in the grid.

Definition at line 47 of file Accessors.hpp.


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