cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
cuda::rtc::runtime_error< Kind > Class Template Reference

A (base?) class for exceptions raised by CUDA code; these errors are thrown by essentially all CUDA Runtime API wrappers upon failure. More...

#include <error.hpp>

Inheritance diagram for cuda::rtc::runtime_error< Kind >:
Collaboration diagram for cuda::rtc::runtime_error< Kind >:

Public Member Functions

 runtime_error (status_t< Kind > error_code)
 
 runtime_error (status_t< Kind > error_code, ::std::string what_arg)
 
 runtime_error (status::named_t< Kind > error_code)
 
 runtime_error (status::named_t< Kind > error_code, const ::std::string &what_arg)
 
status_t< Kind > code () const
 Obtain the CUDA status code which resulted in this error being thrown.
 

Static Public Member Functions

static runtime_error with_message_override (status_t< Kind > error_code, ::std::string complete_what_arg)
 

Detailed Description

template<source_kind_t Kind>
class cuda::rtc::runtime_error< Kind >

A (base?) class for exceptions raised by CUDA code; these errors are thrown by essentially all CUDA Runtime API wrappers upon failure.

A CUDA runtime error can be constructed with either just a CUDA error code (=status code), or a code plus an additional message.


The documentation for this class was generated from the following file: