|
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 ALPAKA_FN_HOST_ACC constexpr auto | assertGreaterThan (TRhs const &rhs) -> void |
| This function asserts that the integral value TLhs is greater than TRhs.
|
|
template<typename TArg > |
ALPAKA_NO_HOST_ACC_WARNING ALPAKA_FN_HOST_ACC constexpr 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.
|
|
template<typename T , typename V > |
auto | clipCast (V const &val) -> T |
|
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>> |
ALPAKA_FN_HOST_ACC constexpr auto | divCeil (Integral a, Integral b) -> Integral |
| Returns the ceiling of a / b, as integer.
|
|
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>> |
ALPAKA_FN_HOST_ACC constexpr auto | intPow (Integral base, Integral n) -> Integral |
| Computes the nth power of base, in integers.
|
|
template<typename Integral , typename = std::enable_if_t<std::is_integral_v<Integral>>> |
ALPAKA_FN_HOST_ACC constexpr auto | nthRootFloor (Integral value, Integral n) -> Integral |
| Computes the floor of the nth root of value, in integers.
|
|
The following compilers does not use std::source_location therefore we do not include the header. Including the header source_location would lead into compiler issues under the following conditions.
- nvcc is used with clang 15 as host compiler and MDSpan is used too. error:
include/c++/11/source_location(53): error: identifier "__builtin_source_location" is undefined