Functions | |
| void | check_cublas_error (cublasStatus_t status, const char *file, int line) |
| void | check_error (cudaError_t error, const char *file, int line) |
|
inline |
Check a cuBLAS API call and throw on error.
| status | Return value from a cublas* function. |
| file | Source file name (from FILE). |
| line | Source line number (from LINE). |
| std::runtime_error | If status != CUBLAS_STATUS_SUCCESS. |
Definition at line 56 of file cuda_error.hpp.
References q3::log::error().
|
inline |
Check a CUDA runtime API call and throw on error.
| error | Return value from a cuda* function. |
| file | Source file name (from FILE). |
| line | Source line number (from LINE). |
| std::runtime_error | If error != cudaSuccess. |
Definition at line 37 of file cuda_error.hpp.
References q3::log::error().