BG_Flood  0.8
Documentation (Work-in-progress)
Setup_GPU.h
Go to the documentation of this file.
1 
2 #ifndef SETUPGPU_H
3 #define SETUPGPU_H
4 
5 #include "General.h"
6 #include "Forcing.h"
7 #include "Param.h"
8 #include "Arrays.h"
9 #include "MemManagement.h"
10 #include "Halo.h"
11 #include "InitialConditions.h"
12 
13 void CUDA_CHECK(cudaError CUDerr);
14 
15 template <class T> void SetupGPU(Param &XParam, Model<T> XModel, Forcing<float>& XForcing, Model<T>& XModel_g);
16 void AllocateTEX(int nx, int ny, TexSetP& Tex, float* input);
17 void AllocateBndTEX(bndparam& side);
18 
19 template <class T> void CopyGPUtoCPU(int nblk, int blksize, T* z_cpu, T* z_gpu);
20 
21 template <class T> void CopytoGPU(int nblk, int blksize, Param XParam, Model<T> XModel_cpu, Model<T> XModel_gpu);
22 template <class T> void CopytoGPU(int nblk, int blksize, T* z_cpu, T* z_gpu);
23 template <class T> void CopytoGPU(int nblk, int blksize, EvolvingP<T> XEv_cpu, EvolvingP<T> XEv_gpu);
24 template <class T> void CopytoGPU(int nblk, int blksize, EvolvingP_M<T> XEv_cpu, EvolvingP_M<T> XEv_gpu);
25 template <class T> void CopytoGPU(int nblk, int blksize, GradientsP<T> XGrad_cpu, GradientsP<T> XGrad_gpu);
26 
27 // End of global definition
28 #endif
void CopytoGPU(int nblk, int blksize, Param XParam, Model< T > XModel_cpu, Model< T > XModel_gpu)
Definition: Setup_GPU.cu:168
void AllocateTEX(int nx, int ny, TexSetP &Tex, float *input)
Definition: Setup_GPU.cu:228
void SetupGPU(Param &XParam, Model< T > XModel, Forcing< float > &XForcing, Model< T > &XModel_g)
Definition: Setup_GPU.cu:6
void AllocateBndTEX(bndparam &side)
Definition: Setup_GPU.cu:255
void CUDA_CHECK(cudaError CUDerr)
Definition: Setup_GPU.cu:97
void CopyGPUtoCPU(int nblk, int blksize, T *z_cpu, T *z_gpu)
Definition: Setup_GPU.cu:122
Definition: Param.h:10
Definition: Forcing.h:88
Definition: Arrays.h:39
Definition: Arrays.h:29
Definition: Forcing.h:116
Definition: Arrays.h:11
Definition: Arrays.h:151
Definition: Forcing.h:9