Extended CUDA Library (ecuda)  2.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
Public Member Functions | List of all members
ecuda::cuda_error Class Reference

Exception for CUDA API cudaError_t errors. More...

#include <cuda_error.hpp>

Inheritance diagram for ecuda::cuda_error:

Public Member Functions

 cuda_error (cudaError_t errorType)
 Constructor. More...
 
 cuda_error (cudaError_t errorType, const std::string &what_arg)
 Constructor. More...
 
 cuda_error (cudaError_t errorType, const char *what_arg)
 Constructor. More...
 
cudaError_t get_error_code () const
 Gets the error code. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

ecuda::cuda_error::cuda_error ( cudaError_t  errorType)
inlineexplicit

Constructor.

Parameters
errorTypeerror code

Definition at line 66 of file cuda_error.hpp.

ecuda::cuda_error::cuda_error ( cudaError_t  errorType,
const std::string &  what_arg 
)
inlineexplicit

Constructor.

Parameters
errorTypeerror code
what_argstring 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
errorTypeerror code
what_argstring describing the error

Definition at line 80 of file cuda_error.hpp.

Member Function Documentation

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: