cuda-api-wrappers
Thin C++-flavored wrappers for the CUDA Runtime API
|
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>
Public Member Functions | |
runtime_error (status::named_t error_code) | |
runtime_error (status::named_t error_code, const ::std::string &what_arg) | |
runtime_error (status::named_t error_code, ::std::string &&what_arg) | |
status_t | 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 error_code, ::std::string complete_what_arg) |
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.