Openholo  v1.0
Open Source Digital Holographic Library
ophWRP_GPU.h File Reference
#include "ophWRP.h"
#include <cuda_runtime.h>
#include <cufft.h>
#include <math_constants.h>
#include <math_functions.h>
#include <math_functions_dbl_ptx3.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 cudaGenWRP (const int &nBlocks, const int &nThreads, const int &n_pts_per_stream, Real *cuda_pc_data, Real *cuda_amp_data, Real *cuda_dst_re, Real *cuda_dst_im, const WRPGpuConst *cuda_config)
 
void cudaGenindexx (const int &nBlocks, const int &nThreads, const int &n_pts_per_stream, Real *cuda_pc_data, Real *cuda_pc_indexx, const WRPGpuConst *cuda_config)
 
void cudaGetObjDst (const int &nBlocks, const int &nThreads, const int &n_pts_per_stream, Real *cuda_pc_index, Real *cuda_pc_obj_dst, const WRPGpuConst *cuda_config)
 
void cudaGetAmpDst (const int &nBlocks, const int &nThreads, const int &n_pts_per_stream, Real *cuda_pc_index, Real *cuda_pc_amp, Real *cuda_amp_dst, const WRPGpuConst *cuda_config, const uint &iAdd)
 

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 73 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 76 of file ophWRP_GPU.h.

Typedef Documentation

◆ WRPGpuConst

typedef struct KernelConst WRPGpuConst

Function Documentation

◆ cudaGenindexx()

void cudaGenindexx ( const int &  nBlocks,
const int &  nThreads,
const int &  n_pts_per_stream,
Real cuda_pc_data,
Real cuda_pc_indexx,
const WRPGpuConst cuda_config 
)

◆ cudaGenWRP()

void cudaGenWRP ( const int &  nBlocks,
const int &  nThreads,
const int &  n_pts_per_stream,
Real cuda_pc_data,
Real cuda_amp_data,
Real cuda_dst_re,
Real cuda_dst_im,
const WRPGpuConst cuda_config 
)

◆ cudaGetAmpDst()

void cudaGetAmpDst ( const int &  nBlocks,
const int &  nThreads,
const int &  n_pts_per_stream,
Real cuda_pc_index,
Real cuda_pc_amp,
Real cuda_amp_dst,
const WRPGpuConst cuda_config,
const uint iAdd 
)

◆ cudaGetObjDst()

void cudaGetObjDst ( const int &  nBlocks,
const int &  nThreads,
const int &  n_pts_per_stream,
Real cuda_pc_index,
Real cuda_pc_obj_dst,
const WRPGpuConst cuda_config 
)