cuSBF
Loading...
Searching...
No Matches
Public Member Functions | List of all members
cusbf::CudaError Class Reference

Exception thrown on CUDA runtime errors. More...

Inheritance diagram for cusbf::CudaError:
[legend]
Collaboration diagram for cusbf::CudaError:
[legend]

Public Member Functions

 CudaError (cudaError_t code, const char *file, int line)
 
cudaError_t code () const noexcept
 

Detailed Description

Exception thrown on CUDA runtime errors.

Definition at line 18 of file helpers.cuh.

Constructor & Destructor Documentation

◆ CudaError()

cusbf::CudaError::CudaError ( cudaError_t  code,
const char *  file,
int  line 
)
inline

Definition at line 20 of file helpers.cuh.

21 : std::runtime_error(
22 std::string(file) + ":" + std::to_string(line) + " " + cudaGetErrorString(code)
23 ),
24 code_(code) {
25 }
cudaError_t code() const noexcept
Definition helpers.cuh:27

Member Function Documentation

◆ code()

cudaError_t cusbf::CudaError::code ( ) const
inlinenoexcept

Definition at line 27 of file helpers.cuh.

27 {
28 return code_;
29 }

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