Enhanced CUDA assertions, including: More...
Macros | |
#define | SP_GPUExcept(CONDITION, EX_TYPE, WHAT) |
Throw an exception on the CPU, and release-assert on the GPU. More... | |
#define | SP_RelAssert(COND, ...) SP_AssertImpl(COND, __VA_ARGS__, "") |
An assert that is always enabled. More... | |
#define | SP_Assert(COND, ...) |
An assert that respects the assertion toggle (which defaults-on in debug mode, and off otherwise) More... | |
#define | SP_DeviceUnreachable() __builtin_unreachable() |
Macro for marking branches unreachable to guide optimisation, yielding an assert in debug builds. More... | |
#define | SP_Unreachable() __builtin_unreachable() |
Macro for marking branches unreachable to guide optimisation, yielding an assert in debug builds. More... | |
Enhanced CUDA assertions, including:
#define SP_Assert | ( | COND, | |
... | |||
) |
An assert that respects the assertion toggle (which defaults-on in debug mode, and off otherwise)
#define SP_DeviceUnreachable | ( | ) | __builtin_unreachable() |
Macro for marking branches unreachable to guide optimisation, yielding an assert in debug builds.
#define SP_GPUExcept | ( | CONDITION, | |
EX_TYPE, | |||
WHAT | |||
) |
Throw an exception on the CPU, and release-assert on the GPU.
#define SP_RelAssert | ( | COND, | |
... | |||
) | SP_AssertImpl(COND, __VA_ARGS__, "") |
An assert that is always enabled.
#define SP_Unreachable | ( | ) | __builtin_unreachable() |
Macro for marking branches unreachable to guide optimisation, yielding an assert in debug builds.