Openholo  v5.0
Open Source Digital Holographic Library
ophWRP_GPU.h File Reference
#include "ophWRP.h"
#include <cuda_runtime_api.h>
#include <cufft.h>
#include <math_constants.h>
#include <vector_functions.h>
Include dependency graph for ophWRP_GPU.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  KernelConst
 

Macros

#define __DEBUG_LOG_GPU_SPEC_
 
#define __CUDA_INTERNAL_COMPILATION__
 
#define HANDLE_ERROR(err)   (HandleError( err, __FILE__, __LINE__ ))
 
#define HANDLE_NULL(a)
 

Typedefs

typedef struct KernelConst WRPGpuConst
 

Functions

void cudaFresnelPropagationWRP (const int &nBlocks, const int &nBlocks2, const int &nThreads, const int &nx, const int &ny, cuDoubleComplex *src, cuDoubleComplex *dst, cufftDoubleComplex *fftsrc, cufftDoubleComplex *fftdst, const WRPGpuConst *cuda_config)
 
void cudaGenWRP (const int &nBlocks, const int &nThreads, const int &n_pts_per_stream, Vertex *cuda_pc_data, cuDoubleComplex *cuda_dst, const WRPGpuConst *cuda_config)
 

Macro Definition Documentation

◆ __CUDA_INTERNAL_COMPILATION__

#define __CUDA_INTERNAL_COMPILATION__

Definition at line 57 of file ophWRP_GPU.h.

◆ __DEBUG_LOG_GPU_SPEC_

#define __DEBUG_LOG_GPU_SPEC_

Definition at line 52 of file ophWRP_GPU.h.

◆ HANDLE_ERROR

#define HANDLE_ERROR (   err)    (HandleError( err, __FILE__, __LINE__ ))

Definition at line 72 of file ophWRP_GPU.h.

◆ HANDLE_NULL

#define HANDLE_NULL (   a)
Value:
{if (a == NULL) { \
printf( "Host memory failed in %s at line %d\n", \
__FILE__, __LINE__ ); \
exit( EXIT_FAILURE );}}

Definition at line 75 of file ophWRP_GPU.h.

Typedef Documentation

◆ WRPGpuConst

typedef struct KernelConst WRPGpuConst

Function Documentation

◆ cudaFresnelPropagationWRP()

void cudaFresnelPropagationWRP ( const int &  nBlocks,
const int &  nBlocks2,
const int &  nThreads,
const int &  nx,
const int &  ny,
cuDoubleComplex *  src,
cuDoubleComplex *  dst,
cufftDoubleComplex *  fftsrc,
cufftDoubleComplex *  fftdst,
const WRPGpuConst cuda_config 
)

◆ cudaGenWRP()

void cudaGenWRP ( const int &  nBlocks,
const int &  nThreads,
const int &  n_pts_per_stream,
Vertex cuda_pc_data,
cuDoubleComplex *  cuda_dst,
const WRPGpuConst cuda_config 
)