16 #if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) || defined(ALPAKA_ACC_GPU_HIP_ENABLED)
23 template<
typename TDim,
typename TIdx>
30 # if !defined(ALPAKA_HOST_ONLY)
32 # if defined(ALPAKA_ACC_GPU_CUDA_ENABLED) && !BOOST_LANG_CUDA
33 # error If ALPAKA_ACC_GPU_CUDA_ENABLED is set, the compiler has to support CUDA!
36 # if defined(ALPAKA_ACC_GPU_HIP_ENABLED) && !BOOST_LANG_HIP
37 # error If ALPAKA_ACC_GPU_HIP_ENABLED is set, the compiler has to support HIP!
43 template<
typename TDim,
typename TIdx>
44 struct DimType<bt::IdxBtUniformCudaHipBuiltIn<TDim, TIdx>>
50 template<
typename TDim,
typename TIdx>
51 struct GetIdx<bt::IdxBtUniformCudaHipBuiltIn<TDim, TIdx>, origin::Block, unit::Threads>
54 template<
typename TWorkDiv>
58 # if defined(ALPAKA_ACC_GPU_CUDA_ENABLED)
59 return castVec<TIdx>(getOffsetVecEnd<TDim>(threadIdx));
61 return getOffsetVecEnd<TDim>(
Vec<std::integral_constant<typename TDim::value_type, 3>, TIdx>(
62 static_cast<TIdx
>(hipThreadIdx_z),
63 static_cast<TIdx
>(hipThreadIdx_y),
64 static_cast<TIdx
>(hipThreadIdx_x)));
70 template<
typename TDim,
typename TIdx>
71 struct IdxType<bt::IdxBtUniformCudaHipBuiltIn<TDim, TIdx>>
The alpaka accelerator library.
Tag used in class inheritance hierarchies that describes that a specific interface (TInterface) is im...
The dimension getter type trait.