Base class for exception types that wrap CUDA error codes. More...
#include <Exception.hpp>
Public Member Functions | |
CudaException (cudaError_t e) | |
CudaException (cudaError_t e, const std::string desc) | |
CudaException (const CudaException &) | |
cudaError_t | getErrorCode () const |
Get the cudaError_t corresponding to this error. More... | |
Public Member Functions inherited from std::runtime_error | |
T | runtime_error (T... args) |
T | what (T... args) |
Public Member Functions inherited from std::exception | |
T | exception (T... args) |
T | operator= (T... args) |
T | what (T... args) |
T | ~exception (T... args) |
Base class for exception types that wrap CUDA error codes.
There's a subclass of this for every CUDA error type, see below.
Generating an exception type for every CUDA error code allows you to catch and handle specific errors, while letting unexpected ones continue to propagate.
cudaError_t sp::CudaException::getErrorCode | ( | ) | const |
Get the cudaError_t
corresponding to this error.