Hedgehog  3.1.0
A library to generate hybrid pipeline workflow systems
Loading...
Searching...
No Matches
cuda_debugging.h File Reference
#include <iostream>
#include <cublas.h>
#include <cuda_runtime.h>
Include dependency graph for cuda_debugging.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define checkCudaErrors(err)   err
 

Functions

void __checkCudaErrors (cudaError_t err, const char *file, const int line)
 Inline helper function for all of the SDK helper functions, to catch and show CUDA Error, in case of error, the device is reset (cudaDeviceReset) and the program exit.
 
void __checkCudaErrors (cublasStatus_t status, const char *file, const int line)
 Inline helper function for all of the SDK helper functions, to catch and show CUDA Status, in case of error, the device is reset (cudaDeviceReset) and the program exit.
 

Macro Definition Documentation

◆ checkCudaErrors

#define checkCudaErrors (   err)    err

Definition at line 64 of file cuda_debugging.h.

Function Documentation

◆ __checkCudaErrors() [1/2]

void __checkCudaErrors ( cublasStatus_t  status,
const char *  file,
const int  line 
)
inline

Inline helper function for all of the SDK helper functions, to catch and show CUDA Status, in case of error, the device is reset (cudaDeviceReset) and the program exit.

Parameters
statusStatus to manage
fileFile generating the error
lineFile's line generating the error

Definition at line 51 of file cuda_debugging.h.

◆ __checkCudaErrors() [2/2]

void __checkCudaErrors ( cudaError_t  err,
const char *  file,
const int  line 
)
inline

Inline helper function for all of the SDK helper functions, to catch and show CUDA Error, in case of error, the device is reset (cudaDeviceReset) and the program exit.

Parameters
errError to manage
fileFile generating the error
lineFile's line generating the error

Definition at line 35 of file cuda_debugging.h.