alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Go to the source code of this file.
Classes | |
struct | alpaka::core::detail::AssertGreaterThan< TLhs, TRhs > |
struct | alpaka::core::detail::AssertValueUnsigned< TArg > |
Namespaces | |
alpaka | |
The alpaka accelerator library. | |
alpaka::core | |
alpaka::core::detail | |
Defines implementation details that should not be used directly by the user. | |
Macros | |
#define | ALPAKA_ASSERT(...) assert(__VA_ARGS__) |
The assert can be explicit disabled by defining NDEBUG. More... | |
#define | ALPAKA_ASSERT_ACC(...) ALPAKA_ASSERT(__VA_ARGS__) |
ALPAKA_ASSERT_ACC is an assert-like macro. More... | |
#define | ALPAKA_ASSERT_ACC_IMPL(...) ALPAKA_ASSERT(__VA_ARGS__) |
ALPAKA_ASSERT_ACC_IMPL is an assert-like macro. It can be disabled setting the ALPAKA_DISABLE_ASSERT_ACC preprocessor symbol or the NDEBUG preprocessor symbol. More... | |
#define | ALPAKA_NOOP(...) |
Macro which expands to a noop. Macro enforces an semicolon after the call. More... | |
Functions | |
template<typename TLhs , typename TRhs > | |
ALPAKA_NO_HOST_ACC_WARNING constexpr ALPAKA_FN_HOST_ACC auto | alpaka::core::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 | alpaka::core::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... | |
#define ALPAKA_ASSERT | ( | ... | ) | assert(__VA_ARGS__) |
The assert can be explicit disabled by defining NDEBUG.
Definition at line 13 of file Assert.hpp.
#define ALPAKA_ASSERT_ACC | ( | ... | ) | ALPAKA_ASSERT(__VA_ARGS__) |
ALPAKA_ASSERT_ACC is an assert-like macro.
In device code for a GPU or SYCL backend it can be disabled setting the ALPAKA_DISABLE_ASSERT_ACC preprocessor symbol or the NDEBUG preprocessor symbol. In device code for a native C++ CPU backend and in host code, it is equivalent to ALPAKA_ASSERT, and can be disabled setting the NDEBUG preprocessor symbol.
Definition at line 52 of file Assert.hpp.
#define ALPAKA_ASSERT_ACC_IMPL | ( | ... | ) | ALPAKA_ASSERT(__VA_ARGS__) |
ALPAKA_ASSERT_ACC_IMPL is an assert-like macro. It can be disabled setting the ALPAKA_DISABLE_ASSERT_ACC preprocessor symbol or the NDEBUG preprocessor symbol.
Definition at line 25 of file Assert.hpp.
#define ALPAKA_NOOP | ( | ... | ) |
Macro which expands to a noop. Macro enforces an semicolon after the call.
Definition at line 17 of file Assert.hpp.