BG_Flood  0.8
Documentation (Work-in-progress)
Setup_GPU.h File Reference
#include "General.h"
#include "Forcing.h"
#include "Param.h"
#include "Arrays.h"
#include "MemManagement.h"
#include "Halo.h"
#include "InitialConditions.h"
Include dependency graph for Setup_GPU.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void CUDA_CHECK (cudaError CUDerr)
 
template<class T >
void SetupGPU (Param &XParam, Model< T > XModel, Forcing< float > &XForcing, Model< T > &XModel_g)
 
void AllocateTEX (int nx, int ny, TexSetP &Tex, float *input)
 
void AllocateBndTEX (bndparam &side)
 
template<class T >
void CopyGPUtoCPU (int nblk, int blksize, T *z_cpu, T *z_gpu)
 
template<class T >
void CopytoGPU (int nblk, int blksize, Param XParam, Model< T > XModel_cpu, Model< T > XModel_gpu)
 
template<class T >
void CopytoGPU (int nblk, int blksize, T *z_cpu, T *z_gpu)
 
template<class T >
void CopytoGPU (int nblk, int blksize, EvolvingP< T > XEv_cpu, EvolvingP< T > XEv_gpu)
 
template<class T >
void CopytoGPU (int nblk, int blksize, EvolvingP_M< T > XEv_cpu, EvolvingP_M< T > XEv_gpu)
 
template<class T >
void CopytoGPU (int nblk, int blksize, GradientsP< T > XGrad_cpu, GradientsP< T > XGrad_gpu)
 

Function Documentation

◆ AllocateBndTEX()

void AllocateBndTEX ( bndparam side)

◆ AllocateTEX()

void AllocateTEX ( int  nx,
int  ny,
TexSetP Tex,
float *  input 
)

◆ CopyGPUtoCPU()

template<class T >
void CopyGPUtoCPU ( int  nblk,
int  blksize,
T *  z_cpu,
T *  z_gpu 
)

◆ CopytoGPU() [1/5]

template<class T >
void CopytoGPU ( int  nblk,
int  blksize,
EvolvingP< T >  XEv_cpu,
EvolvingP< T >  XEv_gpu 
)

◆ CopytoGPU() [2/5]

template<class T >
void CopytoGPU ( int  nblk,
int  blksize,
EvolvingP_M< T >  XEv_cpu,
EvolvingP_M< T >  XEv_gpu 
)

◆ CopytoGPU() [3/5]

template<class T >
void CopytoGPU ( int  nblk,
int  blksize,
GradientsP< T >  XGrad_cpu,
GradientsP< T >  XGrad_gpu 
)

◆ CopytoGPU() [4/5]

template<class T >
void CopytoGPU ( int  nblk,
int  blksize,
Param  XParam,
Model< T >  XModel_cpu,
Model< T >  XModel_gpu 
)

◆ CopytoGPU() [5/5]

template<class T >
void CopytoGPU ( int  nblk,
int  blksize,
T *  z_cpu,
T *  z_gpu 
)

◆ CUDA_CHECK()

void CUDA_CHECK ( cudaError  CUDerr)

◆ SetupGPU()

template<class T >
void SetupGPU ( Param XParam,
Model< T >  XModel,
Forcing< float > &  XForcing,
Model< T > &  XModel_g 
)