2 #ifndef MEMMANAGEMENT_H
3 #define MEMMANAGEMENT_H
11 template <
class T>
void AllocateCPU(
int nx,
int ny, T*& zb);
12 template <
class T>
void AllocateCPU(
int nx,
int ny, T*& zs, T*& h, T*& u, T*& v);
13 template <
class T>
void AllocateCPU(
int nx,
int ny, T*& zs, T*& h, T*& u, T*& v, T*& U, T*& hU);
21 template <
class T>
void ReallocArray(
int nblk,
int blksize, T*& zb);
22 template <
class T>
void ReallocArray(
int nblk,
int blksize, T*& zs, T*& h, T*& u, T*& v);
23 template <
class T>
void ReallocArray(
int nblk,
int blksize, T*& zs, T*& h, T*& u, T*& v, T*& U, T*& hU);
30 __host__ __device__
int memloc(
int halowidth,
int blkmemwidth,
int i,
int j,
int ib);
33 template <
class T>
void AllocateGPU(
int nx,
int ny, T*& z_g);
void ReallocArray(int nblk, int blksize, T *&zb)
Definition: MemManagement.cu:209
void AllocateGPU(int nblk, int blksize, Param XParam, Model< T > &XModel)
Definition: MemManagement.cu:404
int memloc(Param XParam, int i, int j, int ib)
Definition: MemManagement.cu:4
void AllocateCPU(int nx, int ny, T *&zb)
Definition: MemManagement.cu:15