Error checking for GPU.
More...
Go to the source code of this file.
|
#define | CudaSafeCall(err) |
| Check CUDA call and log error message on failure This may be more performant than CHECK_CUDA -> TODO: replace (the other function) in the future (SAM)
|
|
#define | CudaCheckError() |
| Check last error after CUDA calls.
|
|
#define | CHECK_CUDA(call) |
| Check CUDA call and log error message on failure.
|
|
|
void | __cudaCheckError (const char *func, const char *file, int line) |
| Check last error.
|
|
void | __cudaSafeCall (cudaError_t err, const char *func, const char *file, const int line) |
| Check CUDA call and log error message on failure.
|
|
◆ CHECK_CUDA
#define CHECK_CUDA |
( |
| call | ) |
|
Value:
#define CudaSafeCall(err)
Check CUDA call and log error message on failure This may be more performant than CHECK_CUDA -> TODO:...
Definition error_gpu.h:36
Check CUDA call and log error message on failure.
- Parameters
-
call | Function call that should be checked. |
◆ CudaCheckError
#define CudaCheckError |
( |
| ) |
|
Value:
void __cudaCheckError(const char *func, const char *file, int line)
Check last error.
Definition error_gpu.c:23
Check last error after CUDA calls.
◆ CudaSafeCall
#define CudaSafeCall |
( |
| err | ) |
|
Value:
void __cudaSafeCall(cudaError_t err, const char *func, const char *file, const int line)
Check CUDA call and log error message on failure.
Definition error_gpu.c:11
Check CUDA call and log error message on failure This may be more performant than CHECK_CUDA -> TODO: replace (the other function) in the future (SAM)
- Parameters
-
err | Function call that should be checked |
◆ __cudaCheckError()
void __cudaCheckError |
( |
const char * | func, |
|
|
const char * | file, |
|
|
int | line ) |
Check last error.
- Parameters
-
file | File where the last error was raised |
line | Line where the last error was raised |
◆ __cudaSafeCall()
void __cudaSafeCall |
( |
cudaError_t | err, |
|
|
const char * | func, |
|
|
const char * | file, |
|
|
const int | line ) |
Check CUDA call and log error message on failure.
- Parameters
-
cudaError_t | Error return type from CUDA call |
file | File where the exception was raised |
line | Line where the exception was raised |