Exception for CUDA API cudaError_t errors.
More...
#include <cuda_error.hpp>
Exception for CUDA API cudaError_t errors.
See http://docs.nvidia.com/cuda/cuda-runtime-api/group__CUDART__TYPES.html for a list of possible error codes and their meaning.
Definition at line 55 of file cuda_error.hpp.
ecuda::cuda_error::cuda_error |
( |
cudaError_t |
errorType | ) |
|
|
inlineexplicit |
ecuda::cuda_error::cuda_error |
( |
cudaError_t |
errorType, |
|
|
const std::string & |
what_arg |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
errorType | error code |
what_arg | string describing the error |
Definition at line 73 of file cuda_error.hpp.
ecuda::cuda_error::cuda_error |
( |
cudaError_t |
errorType, |
|
|
const char * |
what_arg |
|
) |
| |
|
inlineexplicit |
Constructor.
- Parameters
-
errorType | error code |
what_arg | string describing the error |
Definition at line 80 of file cuda_error.hpp.
cudaError_t ecuda::cuda_error::get_error_code |
( |
| ) |
const |
|
inline |
Gets the error code.
- Returns
- the CUDA error code
Definition at line 86 of file cuda_error.hpp.
The documentation for this class was generated from the following file: