Forge
CUDACopy.hpp File Reference
#include <cuda_gl_interop.h>
#include <cstdio>

Go to the source code of this file.

Namespaces

 fg
 

Macros

#define CUDA_ERROR_CHECK(err)   (handleCUDAError(err, __FILE__, __LINE__ ))
 

Functions

static void handleCUDAError (cudaError_t err, const char *file, int line)
 
template<typename T >
void copy (fg::Image &out, const T *dataPtr)
 
template<class Renderable , typename T >
void copy (Renderable &out, const T *dataPtr)
 

Macro Definition Documentation

◆ CUDA_ERROR_CHECK

#define CUDA_ERROR_CHECK (   err)    (handleCUDAError(err, __FILE__, __LINE__ ))

Function Documentation

◆ handleCUDAError()

static void handleCUDAError ( cudaError_t  err,
const char *  file,
int  line 
)
static