HiRep 0.1
Loading...
Searching...
No Matches
error_gpu.c File Reference

Error checking on the GPU. More...

#include "gpu.h"
#include "error.h"
#include "io.h"
Include dependency graph for error_gpu.c:

Functions

void __cudaSafeCall (cudaError_t err, const char *func, const char *file, const int line)
 Check CUDA call and log error message on failure.
 
void __cudaCheckError (const char *func, const char *file, int line)
 Check last error.
 

Detailed Description

Error checking on the GPU.

Function Documentation

◆ __cudaCheckError()

void __cudaCheckError ( const char * func,
const char * file,
int line )

Check last error.

Parameters
fileFile where the last error was raised
lineLine 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_tError return type from CUDA call
fileFile where the exception was raised
lineLine where the exception was raised