cuda_header.hpp File Reference
#include <cuda_runtime.h>
#include <sstream>
#include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/common/ErrorMacros.hpp>
Include dependency graph for cuda_header.hpp:

Go to the source code of this file.

Macros

#define cudaCheckLastError(msg)   __cudaCheckError( __FILE__, __LINE__, #msg )
 

Functions

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

Macro Definition Documentation

◆ cudaCheckLastError

#define cudaCheckLastError (   msg)    __cudaCheckError( __FILE__, __LINE__, #msg )

Runtime error checking of CUDA functions Usage: cudaMalloc(...); cudaCheckLastError("Error could not allocate memory");

Function Documentation

◆ __cudaCheckError()

void __cudaCheckError ( const char *  file,
const int  line,
const char *  msg 
)
inline