alpaka
Abstraction Library for Parallel Kernel Acceleration
Unreachable.hpp File Reference

Go to the source code of this file.

Macros

#define ALPAKA_UNREACHABLE(...)
 Before CUDA 11.5 nvcc is unable to correctly identify return statements in 'if constexpr' branches. It will issue a false warning about a missing return statement unless it is told that the following code section is unreachable. More...
 

Macro Definition Documentation

◆ ALPAKA_UNREACHABLE

#define ALPAKA_UNREACHABLE (   ...)

Before CUDA 11.5 nvcc is unable to correctly identify return statements in 'if constexpr' branches. It will issue a false warning about a missing return statement unless it is told that the following code section is unreachable.

Parameters
xA dummy value for the expected return type of the calling function.

Definition at line 24 of file Unreachable.hpp.