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::stacktrace_recorder 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...
 
- Public Member Functions inherited from cudf::stacktrace_recorder
char const * stacktrace () const
 Get the stored stacktrace captured during object construction. More...
 

Protected Attributes

cudaError_t _cudaError
 CUDA error code.
 
- Protected Attributes inherited from cudf::stacktrace_recorder
std::string const _stacktrace
 The whole stacktrace stored as one string.
 

Detailed Description

Exception thrown when a CUDA error is encountered.

Definition at line 92 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 99 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 110 of file error.hpp.


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