alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::core Namespace Reference

Namespaces

 align
 The alignment specifics.
 
 detail
 Defines implementation details that should not be used directly by the user.
 
 threads
 
 vectorization
 Suggests vectorization of the directly following loop to the compiler.
 

Classes

class  CallbackThread
 
struct  RoundUpToPowerOfTwo
 Rounds to the next higher power of two (if not already power of two). More...
 

Functions

ALPAKA_FN_INLINE ALPAKA_FN_HOST auto alignedAlloc (size_t alignment, size_t size) -> void *
 
ALPAKA_FN_INLINE ALPAKA_FN_HOST void alignedFree (size_t alignment, void *ptr)
 
template<typename TLhs , typename TRhs >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto assertGreaterThan (TRhs const &rhs) -> void
 This function asserts that the integral value TLhs is greater than TRhs. More...
 
template<typename TArg >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto assertValueUnsigned (TArg const &arg) -> void
 This method checks integral values if they are greater or equal zero. The implementation prevents warnings for checking this for unsigned types. More...
 
template<typename T , typename V >
auto clipCast (V const &val) -> T
 
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto divCeil (Integral a, Integral b) -> Integral
 Returns the ceiling of a / b, as integer. More...
 
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto intPow (Integral base, Integral n) -> Integral
 Computes the nth power of base, in integers. More...
 
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto nthRootFloor (Integral value, Integral n) -> Integral
 Computes the floor of the nth root of value, in integers. More...
 

Variables

template<typename T >
const std::string demangled = boost::core::demangle(typeid(T).name())
 

Function Documentation

◆ alignedAlloc()

ALPAKA_FN_INLINE ALPAKA_FN_HOST auto alpaka::core::alignedAlloc ( size_t  alignment,
size_t  size 
) -> void*

Definition at line 14 of file AlignedAlloc.hpp.

◆ alignedFree()

ALPAKA_FN_INLINE ALPAKA_FN_HOST void alpaka::core::alignedFree ( size_t  alignment,
void *  ptr 
)

Definition at line 19 of file AlignedAlloc.hpp.

◆ assertGreaterThan()

template<typename TLhs , typename TRhs >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::assertGreaterThan ( TRhs const &  rhs) -> void
constexpr

This function asserts that the integral value TLhs is greater than TRhs.

Definition at line 101 of file Assert.hpp.

◆ assertValueUnsigned()

template<typename TArg >
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::assertValueUnsigned ( TArg const &  arg) -> void
constexpr

This method checks integral values if they are greater or equal zero. The implementation prevents warnings for checking this for unsigned types.

Definition at line 77 of file Assert.hpp.

◆ clipCast()

template<typename T , typename V >
auto alpaka::core::clipCast ( V const &  val) -> T
Returns
The input casted and clipped to T.

Definition at line 16 of file ClipCast.hpp.

◆ divCeil()

template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::divCeil ( Integral  a,
Integral  b 
) -> Integral
constexpr

Returns the ceiling of a / b, as integer.

Definition at line 27 of file Utility.hpp.

◆ intPow()

template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::intPow ( Integral  base,
Integral  n 
) -> Integral
constexpr

Computes the nth power of base, in integers.

Definition at line 34 of file Utility.hpp.

◆ nthRootFloor()

template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>>
constexpr ALPAKA_FN_HOST_ACC auto alpaka::core::nthRootFloor ( Integral  value,
Integral  n 
) -> Integral
constexpr

Computes the floor of the nth root of value, in integers.

Definition at line 46 of file Utility.hpp.

Variable Documentation

◆ demangled

template<typename T >
const std::string alpaka::core::demangled = boost::core::demangle(typeid(T).name())
inline

Definition at line 19 of file DemangleTypeNames.hpp.