(git:3add494)
rocm_backend::grid_info< T > Class Template Reference

#include <grid_hip_context.h>

Public Member Functions

 grid_info ()
 
 grid_info (const int *full_size__, const int *local_size__, const int *border_width__)
 
 ~grid_info ()
 
T * data ()
 
void copy_to_gpu (const T *data, offloadStream_t &stream)
 
void copy_to_gpu (offloadStream_t &stream)
 
void reset ()
 
void resize (const int *full_size__, const int *local_size__, const int *const roffset__, const int *const border_width__)
 
size_t size () const
 
void zero (offloadStream_t &stream)
 
gpu_vector< T > & grid ()
 
void set_lattice_vectors (const double *dh__, const double *dh_inv__)
 
T * dh ()
 
T * dh_inv ()
 
bool is_orthorhombic ()
 
void is_distributed (const bool distributed__)
 
void check_orthorhombicity (const bool ortho)
 
void copy_to_host (double *data__, offloadStream_t &stream)
 
void copy_to_host (offloadStream_t &stream)
 
void associate (void *host_ptr__, void *device_ptr__, const size_t size__)
 
bool is_distributed ()
 
int full_size (const int i)
 
int local_size (const int i)
 
int lower_corner (const int i)
 
int border_width (const int i)
 

Detailed Description

template<typename T>
class rocm_backend::grid_info< T >

Definition at line 159 of file grid_hip_context.h.

Constructor & Destructor Documentation

◆ grid_info() [1/2]

template<typename T >
rocm_backend::grid_info< T >::grid_info ( )
inline

Definition at line 172 of file grid_hip_context.h.

◆ grid_info() [2/2]

template<typename T >
rocm_backend::grid_info< T >::grid_info ( const int *  full_size__,
const int *  local_size__,
const int *  border_width__ 
)
inline

Definition at line 174 of file grid_hip_context.h.

◆ ~grid_info()

template<typename T >
rocm_backend::grid_info< T >::~grid_info ( )
inline

Definition at line 179 of file grid_hip_context.h.

Here is the call graph for this function:

Member Function Documentation

◆ data()

template<typename T >
T* rocm_backend::grid_info< T >::data ( )
inline

Definition at line 181 of file grid_hip_context.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ copy_to_gpu() [1/2]

template<typename T >
void rocm_backend::grid_info< T >::copy_to_gpu ( const T *  data,
offloadStream_t &  stream 
)
inline

Definition at line 183 of file grid_hip_context.h.

Here is the call graph for this function:

◆ copy_to_gpu() [2/2]

template<typename T >
void rocm_backend::grid_info< T >::copy_to_gpu ( offloadStream_t &  stream)
inline

Definition at line 187 of file grid_hip_context.h.

Here is the call graph for this function:

◆ reset()

template<typename T >
void rocm_backend::grid_info< T >::reset ( )
inline

Definition at line 191 of file grid_hip_context.h.

Here is the call graph for this function:

◆ resize()

template<typename T >
void rocm_backend::grid_info< T >::resize ( const int *  full_size__,
const int *  local_size__,
const int *const  roffset__,
const int *const  border_width__ 
)
inline

Definition at line 193 of file grid_hip_context.h.

◆ size()

template<typename T >
size_t rocm_backend::grid_info< T >::size ( ) const
inline

Definition at line 199 of file grid_hip_context.h.

Here is the call graph for this function:

◆ zero()

template<typename T >
void rocm_backend::grid_info< T >::zero ( offloadStream_t &  stream)
inline

Definition at line 201 of file grid_hip_context.h.

Here is the call graph for this function:

◆ grid()

template<typename T >
gpu_vector<T>& rocm_backend::grid_info< T >::grid ( )
inline

Definition at line 202 of file grid_hip_context.h.

◆ set_lattice_vectors()

template<typename T >
void rocm_backend::grid_info< T >::set_lattice_vectors ( const double *  dh__,
const double *  dh_inv__ 
)
inline

Definition at line 203 of file grid_hip_context.h.

◆ dh()

template<typename T >
T* rocm_backend::grid_info< T >::dh ( )
inline

Definition at line 208 of file grid_hip_context.h.

◆ dh_inv()

template<typename T >
T* rocm_backend::grid_info< T >::dh_inv ( )
inline

Definition at line 210 of file grid_hip_context.h.

◆ is_orthorhombic()

template<typename T >
bool rocm_backend::grid_info< T >::is_orthorhombic ( )
inline

Definition at line 212 of file grid_hip_context.h.

◆ is_distributed() [1/2]

template<typename T >
void rocm_backend::grid_info< T >::is_distributed ( const bool  distributed__)
inline

Definition at line 214 of file grid_hip_context.h.

◆ check_orthorhombicity()

template<typename T >
void rocm_backend::grid_info< T >::check_orthorhombicity ( const bool  ortho)
inline

Definition at line 218 of file grid_hip_context.h.

◆ copy_to_host() [1/2]

template<typename T >
void rocm_backend::grid_info< T >::copy_to_host ( double *  data__,
offloadStream_t &  stream 
)
inline

Definition at line 249 of file grid_hip_context.h.

Here is the call graph for this function:

◆ copy_to_host() [2/2]

template<typename T >
void rocm_backend::grid_info< T >::copy_to_host ( offloadStream_t &  stream)
inline

Definition at line 253 of file grid_hip_context.h.

Here is the call graph for this function:

◆ associate()

template<typename T >
void rocm_backend::grid_info< T >::associate ( void *  host_ptr__,
void *  device_ptr__,
const size_t  size__ 
)
inline

Definition at line 257 of file grid_hip_context.h.

Here is the call graph for this function:

◆ is_distributed() [2/2]

template<typename T >
bool rocm_backend::grid_info< T >::is_distributed ( )
inline

Definition at line 261 of file grid_hip_context.h.

◆ full_size()

template<typename T >
int rocm_backend::grid_info< T >::full_size ( const int  i)
inline

Definition at line 263 of file grid_hip_context.h.

◆ local_size()

template<typename T >
int rocm_backend::grid_info< T >::local_size ( const int  i)
inline

Definition at line 268 of file grid_hip_context.h.

◆ lower_corner()

template<typename T >
int rocm_backend::grid_info< T >::lower_corner ( const int  i)
inline

Definition at line 273 of file grid_hip_context.h.

◆ border_width()

template<typename T >
int rocm_backend::grid_info< T >::border_width ( const int  i)
inline

Definition at line 278 of file grid_hip_context.h.


The documentation for this class was generated from the following file: