Loading...
Searching...
No Matches
q3::execution::gpu::cuda Namespace Reference

Functions

void check_cublas_error (cublasStatus_t status, const char *file, int line)
 
void check_error (cudaError_t error, const char *file, int line)
 

Function Documentation

◆ check_cublas_error()

void q3::execution::gpu::cuda::check_cublas_error ( cublasStatus_t  status,
const char *  file,
int  line 
)
inline

Check a cuBLAS API call and throw on error.

Parameters
statusReturn value from a cublas* function.
fileSource file name (from FILE).
lineSource line number (from LINE).
Exceptions
std::runtime_errorIf status != CUBLAS_STATUS_SUCCESS.

Definition at line 56 of file cuda_error.hpp.

References q3::log::error().

◆ check_error()

void q3::execution::gpu::cuda::check_error ( cudaError_t  error,
const char *  file,
int  line 
)
inline

Check a CUDA runtime API call and throw on error.

Parameters
errorReturn value from a cuda* function.
fileSource file name (from FILE).
lineSource line number (from LINE).
Exceptions
std::runtime_errorIf error != cudaSuccess.

Definition at line 37 of file cuda_error.hpp.

References q3::log::error().