#include <iostream>
#include <cublas.h>
#include <cuda_runtime.h>
Go to the source code of this file.
|  | 
| 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. 
 | 
|  | 
◆ checkCudaErrors
      
        
          | #define checkCudaErrors | ( |  | err | ) | err | 
      
 
 
◆ __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
- 
  
    | status | Status to manage |  | file | File generating the error |  | line | File'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
- 
  
    | err | Error to manage |  | file | File generating the error |  | line | File's line generating the error |  
 
Definition at line 35 of file cuda_debugging.h.