39 #ifndef ECUDA_CUDA_ERROR_HPP
40 #define ECUDA_CUDA_ERROR_HPP
59 cudaError_t errorType;
66 explicit cuda_error( cudaError_t errorType ) : std::runtime_error(
""), errorType(errorType) {}
73 explicit cuda_error( cudaError_t errorType,
const std::string& what_arg ) : std::runtime_error( what_arg ), errorType(errorType) {}
80 explicit cuda_error( cudaError_t errorType,
const char* what_arg ) : std::runtime_error( what_arg ), errorType(errorType) {}
cuda_error(cudaError_t errorType, const char *what_arg)
Constructor.
Exception for CUDA API cudaError_t errors.
cuda_error(cudaError_t errorType, const std::string &what_arg)
Constructor.
cuda_error(cudaError_t errorType)
Constructor.
cudaError_t get_error_code() const
Gets the error code.