#include "ophTriMesh.h"
#include "sys.h"
#include <stdio.h>
#include <cuda_runtime_api.h>
#include <cufft.h>
#include <curand.h>
#include <math_constants.h>
Go to the source code of this file.
|
void | cudaMesh_Flat (const int &nBlocks, const int &nThreads, cufftDoubleComplex *output, const MeshKernelConfig *config, double shading_factor, const geometric *geom, double carrierWaveX, double carrierWaveY, double carrierWaveZ, CUstream_st *stream) |
|
void | cudaMesh_Continuous (const int &nBlocks, const int &nThreads, cufftDoubleComplex *output, const MeshKernelConfig *config, const geometric *geom, double av0, double av1, double av2, double carrierWaveX, double carrierWaveY, double carrierWaveZ, CUstream_st *stream) |
|
void | call_fftGPU (int nx, int ny, cufftDoubleComplex *input, cufftDoubleComplex *output, CUstream_st *streamTriMesh) |
|
void | call_fftGPUf (int nx, int ny, cuFloatComplex *input, cuFloatComplex *output, CUstream_st *streamTriMesh) |
|
◆ CUDA_CALL
Value:{ if((x)!=cudaSuccess) { \
printf("Error at %s:%d\n",__FILE__,__LINE__);\
exit( EXIT_FAILURE ); }}
Definition at line 75 of file ophTriMesh_GPU.h.
◆ CURAND_CALL
Value:{ if((x)!=CURAND_STATUS_SUCCESS) { \
printf("Error at %s:%d\n",__FILE__,__LINE__);\
exit( EXIT_FAILURE ); }}
Definition at line 78 of file ophTriMesh_GPU.h.
◆ HANDLE_ERROR
#define HANDLE_ERROR |
( |
|
err | ) |
(HandleError( err, __FILE__, __LINE__ )) |
◆ HANDLE_NULL
Value:{if (a == NULL) { \
printf( "Host memory failed in %s at line %d\n", __FILE__, __LINE__ ); \
exit( EXIT_FAILURE );}}
Definition at line 71 of file ophTriMesh_GPU.h.
◆ MeshKernelConfig
◆ call_fftGPU()
void call_fftGPU |
( |
int |
nx, |
|
|
int |
ny, |
|
|
cufftDoubleComplex * |
input, |
|
|
cufftDoubleComplex * |
output, |
|
|
CUstream_st * |
streamTriMesh |
|
) |
| |
◆ call_fftGPUf()
void call_fftGPUf |
( |
int |
nx, |
|
|
int |
ny, |
|
|
cuFloatComplex * |
input, |
|
|
cuFloatComplex * |
output, |
|
|
CUstream_st * |
streamTriMesh |
|
) |
| |
◆ cudaMesh_Continuous()
void cudaMesh_Continuous |
( |
const int & |
nBlocks, |
|
|
const int & |
nThreads, |
|
|
cufftDoubleComplex * |
output, |
|
|
const MeshKernelConfig * |
config, |
|
|
const geometric * |
geom, |
|
|
double |
av0, |
|
|
double |
av1, |
|
|
double |
av2, |
|
|
double |
carrierWaveX, |
|
|
double |
carrierWaveY, |
|
|
double |
carrierWaveZ, |
|
|
CUstream_st * |
stream |
|
) |
| |
◆ cudaMesh_Flat()
void cudaMesh_Flat |
( |
const int & |
nBlocks, |
|
|
const int & |
nThreads, |
|
|
cufftDoubleComplex * |
output, |
|
|
const MeshKernelConfig * |
config, |
|
|
double |
shading_factor, |
|
|
const geometric * |
geom, |
|
|
double |
carrierWaveX, |
|
|
double |
carrierWaveY, |
|
|
double |
carrierWaveZ, |
|
|
CUstream_st * |
stream |
|
) |
| |