Go to the documentation of this file.
20#ifndef CUDA_HEADER_HEADER_INCLUDED
21#define CUDA_HEADER_HEADER_INCLUDED
23#include <cuda_runtime.h>
26#include <opm/common/OpmLog/OpmLog.hpp>
27#include <opm/common/ErrorMacros.hpp>
34#define cudaCheckLastError(msg) __cudaCheckError( __FILE__, __LINE__, #msg )
37 cudaError err = cudaGetLastError();
38 if (cudaSuccess != err){
39 std::ostringstream out;
40 out << cudaGetErrorString(err) << "\n";
41 out << "BDA error message: " << msg << "\n";
42 OPM_THROW(std::logic_error, out.str());
|