alpaka
Abstraction Library for Parallel Kernel Acceleration
Traits.hpp File Reference
#include "alpaka/core/Common.hpp"
#include "alpaka/dim/DimIntegralConst.hpp"
#include "alpaka/idx/Traits.hpp"
#include "alpaka/vec/Vec.hpp"
#include <type_traits>

Go to the source code of this file.

Classes

struct  alpaka::trait::GetOffset< TIdx, TOffsets, TSfinae >
 The x offset get trait. More...
 
struct  alpaka::trait::GetOffsets< TIntegral, std::enable_if_t< std::is_integral_v< TIntegral > > >
 The unsigned integral x offset get trait specialization. More...
 
struct  alpaka::trait::GetOffsets< Vec< TDim, TVal > >
 The Vec offset get trait specialization. More...
 

Namespaces

 alpaka
 The alpaka accelerator library.
 
 alpaka::trait
 The accelerator traits.
 

Functions

template<std::size_t Tidx, typename TOffsets >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::getOffset (TOffsets const &offsets) -> Idx< TOffsets >
 
template<typename T >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::getOffsets (T const &object) -> Vec< Dim< T >, Idx< T >>
 
template<typename T >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto alpaka::getOffsetVec (T const &object={}) -> Vec< Dim< T >, Idx< T >>
 
template<typename TDim , typename T >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto alpaka::getOffsetVecEnd (T const &object={}) -> Vec< TDim, Idx< T >>
 
template<typename TOffsets >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::getOffsetX (TOffsets const &offsets=TOffsets()) -> Idx< TOffsets >
 
template<typename TOffsets >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::getOffsetY (TOffsets const &offsets=TOffsets()) -> Idx< TOffsets >
 
template<typename TOffsets >
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC auto alpaka::getOffsetZ (TOffsets const &offsets=TOffsets()) -> Idx< TOffsets >