Peka2D_v5  v5.0
Functions
memoryManage.cu File Reference
#include "memoryManage.cuh"
Include dependency graph for memoryManage.cu:

Functions

EXPORT_DLL int createArraysCudaMemory (t_arrays *carrays, t_arrays *garrays, t_cuPtr *cuPtr, t_message *msg)
 
EXPORT_DLL int allocateArraysCudaMem (int NCwall, int ncells, int nWallCell, int nwc, int nwb, t_cuPtr *cuPtr)
 
EXPORT_DLL int copyControlArraysCudaMem (t_arrays *carrays, t_arrays *garrays, t_cuPtr *cuPtr)
 
int copyMeshArraysCudaMem (t_arrays *carrays, t_arrays *garrays, t_cuPtr *cuPtr)
 
__global__ void assignGArraysToCudaMem (t_arrays *garrays, int *activeC, int *actCells, int *cidx, int *nneig, double *z, double *h, double *hu, double *hv, double *u, double *v, double *modulou, double *sqrh, double *area, double *nman, double *SOX, double *SOY, double *mass, double *dh, double *dhu, double *dhv, int *solidWallByCell, int *neighCell, int *neighWall, double *normalXbyCell, double *normalYbyCell, int *activeW, int *actWalls, int *widx, int *idx1, int *idx2, int *idw1, int *idw2, double *normalX, double *normalY, double *deltaX, double *length, double *distNormal, double *distCentX, double *distCentY, double *nman2wall, double *gp, int *typeOfBound, int *solidWall, double *qnormalL, double *localDt)
 
EXPORT_DLL int freeCudaMemory (t_cuPtr *cuPtr)
 
EXPORT_DLL int allocateArraysSolutesCudaMem (int nSolutes, int NCwall, int ncells, int nWallCell, int nwc, int nwb, t_cuPtr *cuPtr)
 
EXPORT_DLL int copyControlArraysSolutesCudaMem (int nSolutes, t_arrays *carrays, t_arrays *garrays, t_cuPtr *cuPtr)
 
int copyMeshArraysSolutesCudaMem (int nSolutes, t_arrays *carrays, t_arrays *garrays, t_cuPtr *cuPtr)
 
__global__ void assignGArraysSolutesToCudaMem (int nSolutes, t_arrays *garrays, int *typeDiff, double *k_xx, double *k_yy, double *hcsol, double *csol, double *dhcsol)
 
EXPORT_DLL int freeSolutesCudaMemory (int nSolutes, t_cuPtr *cuPtr)
 

Function Documentation

◆ allocateArraysCudaMem()

EXPORT_DLL int allocateArraysCudaMem ( int  NCwall,
int  ncells,
int  nWallCell,
int  nwc,
int  nwb,
t_cuPtr cuPtr 
)

◆ allocateArraysSolutesCudaMem()

EXPORT_DLL int allocateArraysSolutesCudaMem ( int  nSolutes,
int  NCwall,
int  ncells,
int  nWallCell,
int  nwc,
int  nwb,
t_cuPtr cuPtr 
)

◆ assignGArraysSolutesToCudaMem()

__global__ void assignGArraysSolutesToCudaMem ( int  nSolutes,
t_arrays garrays,
int *  typeDiff,
double *  k_xx,
double *  k_yy,
double *  hcsol,
double *  csol,
double *  dhcsol 
)

◆ assignGArraysToCudaMem()

__global__ void assignGArraysToCudaMem ( t_arrays garrays,
int *  activeC,
int *  actCells,
int *  cidx,
int *  nneig,
double *  z,
double *  h,
double *  hu,
double *  hv,
double *  u,
double *  v,
double *  modulou,
double *  sqrh,
double *  area,
double *  nman,
double *  SOX,
double *  SOY,
double *  mass,
double *  dh,
double *  dhu,
double *  dhv,
int *  solidWallByCell,
int *  neighCell,
int *  neighWall,
double *  normalXbyCell,
double *  normalYbyCell,
int *  activeW,
int *  actWalls,
int *  widx,
int *  idx1,
int *  idx2,
int *  idw1,
int *  idw2,
double *  normalX,
double *  normalY,
double *  deltaX,
double *  length,
double *  distNormal,
double *  distCentX,
double *  distCentY,
double *  nman2wall,
double *  gp,
int *  typeOfBound,
int *  solidWall,
double *  qnormalL,
double *  localDt 
)

◆ copyControlArraysCudaMem()

EXPORT_DLL int copyControlArraysCudaMem ( t_arrays carrays,
t_arrays garrays,
t_cuPtr cuPtr 
)

◆ copyControlArraysSolutesCudaMem()

EXPORT_DLL int copyControlArraysSolutesCudaMem ( int  nSolutes,
t_arrays carrays,
t_arrays garrays,
t_cuPtr cuPtr 
)

◆ copyMeshArraysCudaMem()

int copyMeshArraysCudaMem ( t_arrays carrays,
t_arrays garrays,
t_cuPtr cuPtr 
)

◆ copyMeshArraysSolutesCudaMem()

int copyMeshArraysSolutesCudaMem ( int  nSolutes,
t_arrays carrays,
t_arrays garrays,
t_cuPtr cuPtr 
)

◆ createArraysCudaMemory()

EXPORT_DLL int createArraysCudaMemory ( t_arrays carrays,
t_arrays garrays,
t_cuPtr cuPtr,
t_message msg 
)

◆ freeCudaMemory()

EXPORT_DLL int freeCudaMemory ( t_cuPtr cuPtr)

◆ freeSolutesCudaMemory()

EXPORT_DLL int freeSolutesCudaMemory ( int  nSolutes,
t_cuPtr cuPtr 
)