Public Member Functions | Protected Attributes | List of all members
cudf::cuda_error Struct Reference

Exception thrown when a CUDA error is encountered. More...

#include <error.hpp>

Inheritance diagram for cudf::cuda_error:
cudf::fatal_cuda_error

Public Member Functions

 cuda_error (std::string const &message, cudaError_t const &error)
 Construct a new cuda error object with error message and code. More...
 
cudaError_t error_code () const
 Returns the CUDA error code associated with the exception. More...
 

Protected Attributes

cudaError_t _cudaError
 CUDA error code.
 

Detailed Description

Exception thrown when a CUDA error is encountered.

Definition at line 60 of file error.hpp.

Constructor & Destructor Documentation

◆ cuda_error()

cudf::cuda_error::cuda_error ( std::string const &  message,
cudaError_t const &  error 
)
inline

Construct a new cuda error object with error message and code.

Parameters
messageError message
errorCUDA error code

Definition at line 67 of file error.hpp.

Member Function Documentation

◆ error_code()

cudaError_t cudf::cuda_error::error_code ( ) const
inline

Returns the CUDA error code associated with the exception.

Returns
CUDA error code

Definition at line 78 of file error.hpp.


The documentation for this struct was generated from the following file: