BG_Flood  0.8
Documentation (Work-in-progress)
Setup_GPU.cu File Reference
#include "Setup_GPU.h"
Include dependency graph for Setup_GPU.cu:

Functions

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

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 
)

◆ CopyGPUtoCPU< bool >()

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

◆ CopyGPUtoCPU< double >()

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

◆ CopyGPUtoCPU< float >()

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

◆ CopyGPUtoCPU< int >()

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

◆ CopytoGPU() [1/7]

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

◆ CopytoGPU() [2/7]

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

◆ CopytoGPU() [3/7]

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

◆ CopytoGPU() [4/7]

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

◆ CopytoGPU() [5/7]

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

◆ CopytoGPU() [6/7]

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

◆ CopytoGPU() [7/7]

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

◆ CopytoGPU< bool >()

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

◆ CopytoGPU< double >() [1/4]

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

◆ CopytoGPU< double >() [2/4]

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

◆ CopytoGPU< double >() [3/4]

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

◆ CopytoGPU< double >() [4/4]

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

◆ CopytoGPU< float >() [1/4]

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

◆ CopytoGPU< float >() [2/4]

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

◆ CopytoGPU< float >() [3/4]

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

◆ CopytoGPU< float >() [4/4]

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

◆ CopytoGPU< int >()

template void CopytoGPU< int > ( int  nblk,
int  blksize,
int *  z_cpu,
int *  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 
)

◆ SetupGPU< double >()

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

◆ SetupGPU< float >()

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