#include "layer_0_core/logging/init.hpp"#include <cublas_v2.h>#include <cuda_runtime.h>#include <stdexcept>#include <string>Go to the source code of this file.
Namespaces | |
| namespace | q3 |
| namespace | q3::execution |
| namespace | q3::execution::gpu |
| namespace | q3::execution::gpu::cuda |
Macros | |
| #define | Q3_CUBLAS_CHECK(call) q3::execution::gpu::cuda::check_cublas_error((call), __FILE__, __LINE__) |
| #define | Q3_CUDA_CHECK(call) q3::execution::gpu::cuda::check_error((call), __FILE__, __LINE__) |
Functions | |
| void | q3::execution::gpu::cuda::check_cublas_error (cublasStatus_t status, const char *file, int line) |
| void | q3::execution::gpu::cuda::check_error (cudaError_t error, const char *file, int line) |
| #define Q3_CUBLAS_CHECK | ( | call | ) | q3::execution::gpu::cuda::check_cublas_error((call), __FILE__, __LINE__) |
Check a cuBLAS API call, logging file and line on error.
Usage: Q3_CUBLAS_CHECK(cublasCreate(&handle));
Definition at line 82 of file cuda_error.hpp.
| #define Q3_CUDA_CHECK | ( | call | ) | q3::execution::gpu::cuda::check_error((call), __FILE__, __LINE__) |
Check a CUDA runtime API call, logging file and line on error.
Usage: Q3_CUDA_CHECK(cudaMalloc(&pointer, size));
Definition at line 74 of file cuda_error.hpp.