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

Functions

__host__ int memloc (Param XParam, int i, int j, int ib)
 
__host__ __device__ int memloc (int halowidth, int blkmemwidth, int i, int j, int ib)
 
template<class T >
__host__ void AllocateCPU (int nx, int ny, T *&zb)
 
template<class T >
__host__ void AllocateCPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v)
 
template void AllocateCPU< double > (int nx, int ny, double *&zs, double *&h, double *&u, double *&v)
 
template void AllocateCPU< float > (int nx, int ny, float *&zs, float *&h, float *&u, float *&v)
 
template void AllocateCPU< int > (int nx, int ny, int *&zs, int *&h, int *&u, int *&v)
 
template<class T >
__host__ void AllocateCPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v, T *&U, T *&hU)
 
template void AllocateCPU< double > (int nx, int ny, double *&zs, double *&h, double *&u, double *&v, double *&U, double *&hU)
 
template void AllocateCPU< float > (int nx, int ny, float *&zs, float *&h, float *&u, float *&v, float *&U, float *&hU)
 
template void AllocateCPU< int > (int nx, int ny, int *&zs, int *&h, int *&u, int *&v, int *&U, int *&hU)
 
template<class T >
__host__ void AllocateCPU (int nx, int ny, GradientsP< T > &Grad)
 
template void AllocateCPU< float > (int nx, int ny, GradientsP< float > &Grad)
 
template void AllocateCPU< double > (int nx, int ny, GradientsP< double > &Grad)
 
template<class T >
void AllocateCPU (int nblk, int blksize, EvolvingP< T > &Ev)
 
template<class T >
void AllocateCPU (int nblk, int blksize, EvolvingP_M< T > &Ev)
 
template<class T >
void AllocateCPU (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
template void AllocateCPU< float > (int nblk, int blksize, Param XParam, Model< float > &XModel)
 
template void AllocateCPU< double > (int nblk, int blksize, Param XParam, Model< double > &XModel)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zb)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zs, T *&h, T *&u, T *&v)
 
template void ReallocArray< int > (int nblk, int blksize, int *&zs, int *&h, int *&u, int *&v)
 
template void ReallocArray< float > (int nblk, int blksize, float *&zs, float *&h, float *&u, float *&v)
 
template void ReallocArray< double > (int nblk, int blksize, double *&zs, double *&h, double *&u, double *&v)
 
template<class T >
void ReallocArray (int nblk, int blksize, T *&zs, T *&h, T *&u, T *&v, T *&U, T *&hU)
 
template void ReallocArray< int > (int nblk, int blksize, int *&zs, int *&h, int *&u, int *&v, int *&U, int *&hU)
 
template void ReallocArray< float > (int nblk, int blksize, float *&zs, float *&h, float *&u, float *&v, float *&U, float *&hU)
 
template void ReallocArray< double > (int nblk, int blksize, double *&zs, double *&h, double *&u, double *&v, double *&U, double *&hU)
 
template<class T >
void ReallocArray (int nblk, int blksize, EvolvingP< T > &Ev)
 
template void ReallocArray< float > (int nblk, int blksize, EvolvingP< float > &Ev)
 
template void ReallocArray< double > (int nblk, int blksize, EvolvingP< double > &Ev)
 
template<class T >
void ReallocArray (int nblk, int blksize, EvolvingP_M< T > &Ev)
 
template void ReallocArray< float > (int nblk, int blksize, EvolvingP_M< float > &Ev)
 
template void ReallocArray< double > (int nblk, int blksize, EvolvingP_M< double > &Ev)
 
template<class T >
void ReallocArray (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
template void ReallocArray< float > (int nblk, int blksize, Param XParam, Model< float > &XModel)
 
template void ReallocArray< double > (int nblk, int blksize, Param XParam, Model< double > &XModel)
 
template<class T >
void AllocateGPU (int nx, int ny, T *&z_g)
 
template<class T >
void AllocateGPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v)
 
template void AllocateGPU< double > (int nx, int ny, double *&zs, double *&h, double *&u, double *&v)
 
template void AllocateGPU< float > (int nx, int ny, float *&zs, float *&h, float *&u, float *&v)
 
template void AllocateGPU< int > (int nx, int ny, int *&zs, int *&h, int *&u, int *&v)
 
template<class T >
void AllocateGPU (int nx, int ny, T *&zs, T *&h, T *&u, T *&v, T *&U, T *&hU)
 
template void AllocateGPU< double > (int nx, int ny, double *&zs, double *&h, double *&u, double *&v, double *&U, double *&hU)
 
template void AllocateGPU< float > (int nx, int ny, float *&zs, float *&h, float *&u, float *&v, float *&U, float *&hU)
 
template void AllocateGPU< int > (int nx, int ny, int *&zs, int *&h, int *&u, int *&v, int *&U, int *&hU)
 
template<class T >
void AllocateGPU (int nx, int ny, GradientsP< T > &Grad)
 
template void AllocateGPU< float > (int nx, int ny, GradientsP< float > &Grad)
 
template void AllocateGPU< double > (int nx, int ny, GradientsP< double > &Grad)
 
template<class T >
void AllocateGPU (int nblk, int blksize, EvolvingP< T > &Ev)
 
template<class T >
void AllocateGPU (int nblk, int blksize, EvolvingP_M< T > &Ev)
 
template<class T >
void AllocateGPU (int nblk, int blksize, Param XParam, Model< T > &XModel)
 
template void AllocateGPU< float > (int nblk, int blksize, Param XParam, Model< float > &XModel)
 
template void AllocateGPU< double > (int nblk, int blksize, Param XParam, Model< double > &XModel)
 

Function Documentation

◆ AllocateCPU() [1/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
EvolvingP< T > &  Ev 
)

◆ AllocateCPU() [2/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
EvolvingP_M< T > &  Ev 
)

◆ AllocateCPU() [3/7]

template<class T >
void AllocateCPU ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ AllocateCPU() [4/7]

template<class T >
__host__ void AllocateCPU ( int  nx,
int  ny,
GradientsP< T > &  Grad 
)

◆ AllocateCPU() [5/7]

template<class T >
__host__ void AllocateCPU ( int  nx,
int  ny,
T *&  zb 
)

◆ AllocateCPU() [6/7]

template<class T >
__host__ void AllocateCPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v 
)

◆ AllocateCPU() [7/7]

template<class T >
__host__ void AllocateCPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v,
T *&  U,
T *&  hU 
)

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

template void AllocateCPU< double > ( int  nblk,
int  blksize,
Param  XParam,
Model< double > &  XModel 
)

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

template void AllocateCPU< double > ( int  nx,
int  ny,
double *&  zs,
double *&  h,
double *&  u,
double *&  v 
)

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

template void AllocateCPU< double > ( int  nx,
int  ny,
double *&  zs,
double *&  h,
double *&  u,
double *&  v,
double *&  U,
double *&  hU 
)

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

template void AllocateCPU< double > ( int  nx,
int  ny,
GradientsP< double > &  Grad 
)

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

template void AllocateCPU< float > ( int  nblk,
int  blksize,
Param  XParam,
Model< float > &  XModel 
)

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

template void AllocateCPU< float > ( int  nx,
int  ny,
float *&  zs,
float *&  h,
float *&  u,
float *&  v 
)

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

template void AllocateCPU< float > ( int  nx,
int  ny,
float *&  zs,
float *&  h,
float *&  u,
float *&  v,
float *&  U,
float *&  hU 
)

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

template void AllocateCPU< float > ( int  nx,
int  ny,
GradientsP< float > &  Grad 
)

◆ AllocateCPU< int >() [1/2]

template void AllocateCPU< int > ( int  nx,
int  ny,
int *&  zs,
int *&  h,
int *&  u,
int *&  v 
)

◆ AllocateCPU< int >() [2/2]

template void AllocateCPU< int > ( int  nx,
int  ny,
int *&  zs,
int *&  h,
int *&  u,
int *&  v,
int *&  U,
int *&  hU 
)

◆ AllocateGPU() [1/7]

template<class T >
void AllocateGPU ( int  nblk,
int  blksize,
EvolvingP< T > &  Ev 
)

◆ AllocateGPU() [2/7]

template<class T >
void AllocateGPU ( int  nblk,
int  blksize,
EvolvingP_M< T > &  Ev 
)

◆ AllocateGPU() [3/7]

template<class T >
void AllocateGPU ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ AllocateGPU() [4/7]

template<class T >
void AllocateGPU ( int  nx,
int  ny,
GradientsP< T > &  Grad 
)

◆ AllocateGPU() [5/7]

template<class T >
void AllocateGPU ( int  nx,
int  ny,
T *&  z_g 
)

◆ AllocateGPU() [6/7]

template<class T >
void AllocateGPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v 
)

◆ AllocateGPU() [7/7]

template<class T >
void AllocateGPU ( int  nx,
int  ny,
T *&  zs,
T *&  h,
T *&  u,
T *&  v,
T *&  U,
T *&  hU 
)

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

template void AllocateGPU< double > ( int  nblk,
int  blksize,
Param  XParam,
Model< double > &  XModel 
)

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

template void AllocateGPU< double > ( int  nx,
int  ny,
double *&  zs,
double *&  h,
double *&  u,
double *&  v 
)

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

template void AllocateGPU< double > ( int  nx,
int  ny,
double *&  zs,
double *&  h,
double *&  u,
double *&  v,
double *&  U,
double *&  hU 
)

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

template void AllocateGPU< double > ( int  nx,
int  ny,
GradientsP< double > &  Grad 
)

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

template void AllocateGPU< float > ( int  nblk,
int  blksize,
Param  XParam,
Model< float > &  XModel 
)

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

template void AllocateGPU< float > ( int  nx,
int  ny,
float *&  zs,
float *&  h,
float *&  u,
float *&  v 
)

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

template void AllocateGPU< float > ( int  nx,
int  ny,
float *&  zs,
float *&  h,
float *&  u,
float *&  v,
float *&  U,
float *&  hU 
)

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

template void AllocateGPU< float > ( int  nx,
int  ny,
GradientsP< float > &  Grad 
)

◆ AllocateGPU< int >() [1/2]

template void AllocateGPU< int > ( int  nx,
int  ny,
int *&  zs,
int *&  h,
int *&  u,
int *&  v 
)

◆ AllocateGPU< int >() [2/2]

template void AllocateGPU< int > ( int  nx,
int  ny,
int *&  zs,
int *&  h,
int *&  u,
int *&  v,
int *&  U,
int *&  hU 
)

◆ memloc() [1/2]

__host__ __device__ int memloc ( int  halowidth,
int  blkmemwidth,
int  i,
int  j,
int  ib 
)

◆ memloc() [2/2]

__host__ int memloc ( Param  XParam,
int  i,
int  j,
int  ib 
)

◆ ReallocArray() [1/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
EvolvingP< T > &  Ev 
)

◆ ReallocArray() [2/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
EvolvingP_M< T > &  Ev 
)

◆ ReallocArray() [3/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
Param  XParam,
Model< T > &  XModel 
)

◆ ReallocArray() [4/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zb 
)

◆ ReallocArray() [5/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zs,
T *&  h,
T *&  u,
T *&  v 
)

◆ ReallocArray() [6/6]

template<class T >
void ReallocArray ( int  nblk,
int  blksize,
T *&  zs,
T *&  h,
T *&  u,
T *&  v,
T *&  U,
T *&  hU 
)

◆ ReallocArray< double >() [1/5]

template void ReallocArray< double > ( int  nblk,
int  blksize,
double *&  zs,
double *&  h,
double *&  u,
double *&  v 
)

◆ ReallocArray< double >() [2/5]

template void ReallocArray< double > ( int  nblk,
int  blksize,
double *&  zs,
double *&  h,
double *&  u,
double *&  v,
double *&  U,
double *&  hU 
)

◆ ReallocArray< double >() [3/5]

template void ReallocArray< double > ( int  nblk,
int  blksize,
EvolvingP< double > &  Ev 
)

◆ ReallocArray< double >() [4/5]

template void ReallocArray< double > ( int  nblk,
int  blksize,
EvolvingP_M< double > &  Ev 
)

◆ ReallocArray< double >() [5/5]

template void ReallocArray< double > ( int  nblk,
int  blksize,
Param  XParam,
Model< double > &  XModel 
)

◆ ReallocArray< float >() [1/5]

template void ReallocArray< float > ( int  nblk,
int  blksize,
EvolvingP< float > &  Ev 
)

◆ ReallocArray< float >() [2/5]

template void ReallocArray< float > ( int  nblk,
int  blksize,
EvolvingP_M< float > &  Ev 
)

◆ ReallocArray< float >() [3/5]

template void ReallocArray< float > ( int  nblk,
int  blksize,
float *&  zs,
float *&  h,
float *&  u,
float *&  v 
)

◆ ReallocArray< float >() [4/5]

template void ReallocArray< float > ( int  nblk,
int  blksize,
float *&  zs,
float *&  h,
float *&  u,
float *&  v,
float *&  U,
float *&  hU 
)

◆ ReallocArray< float >() [5/5]

template void ReallocArray< float > ( int  nblk,
int  blksize,
Param  XParam,
Model< float > &  XModel 
)

◆ ReallocArray< int >() [1/2]

template void ReallocArray< int > ( int  nblk,
int  blksize,
int *&  zs,
int *&  h,
int *&  u,
int *&  v 
)

◆ ReallocArray< int >() [2/2]

template void ReallocArray< int > ( int  nblk,
int  blksize,
int *&  zs,
int *&  h,
int *&  u,
int *&  v,
int *&  U,
int *&  hU 
)