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

The IdxBtLinear block thread index get trait specialization. More...

#include <IdxBtLinear.hpp>

Static Public Member Functions

template<typename TWorkDiv >
static auto getIdx (bt::IdxBtLinear< TDim, TIdx > const &idx, TWorkDiv const &workDiv) -> Vec< TDim, TIdx >
 

Detailed Description

template<typename TDim, typename TIdx>
struct alpaka::trait::GetIdx< bt::IdxBtLinear< TDim, TIdx >, origin::Block, unit::Threads >

The IdxBtLinear block thread index get trait specialization.

Definition at line 42 of file IdxBtLinear.hpp.

Member Function Documentation

◆ getIdx()

template<typename TDim , typename TIdx >
template<typename TWorkDiv >
static auto alpaka::trait::GetIdx< bt::IdxBtLinear< TDim, TIdx >, origin::Block, unit::Threads >::getIdx ( bt::IdxBtLinear< TDim, TIdx > const &  idx,
TWorkDiv const &  workDiv 
) -> Vec<TDim, TIdx>
inlinestatic
Returns
The index of the current thread in the block.

Definition at line 46 of file IdxBtLinear.hpp.


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