cuda::experimental::stf::cuda_status_traits_base#

template<class T>
struct cuda_status_traits_base#

The part of status_traits common to the CUDA status types: success is the zero enumerator, and the exception is a cuda_exception.

A specialization inherits it and defines only name.

Template Parameters:

T – the CUDA status type

Public Static Functions

static inline constexpr T success() noexcept#

The success value, the zero enumerator.

Returns:

T{}

static cuda_exception to_exception(
T status,
::cuda::std::source_location loc
)#

The exception unwind throws and exception-only policies receive.

Parameters:
  • status – [in] the status

  • loc – [in] the location reported in the message

Returns:

cuda_exception(status, loc)