(git:98357aa)
Loading...
Searching...
No Matches
rocm_backend::grid_info< T > Class Template Reference

#include <grid_gpu_context.h>

Public Member Functions

 grid_info (const grid_info &)=delete
 
grid_infooperator= (const grid_info &)=delete
 
 grid_info (grid_info &&) noexcept=default
 
grid_infooperator= (grid_info &&) noexcept=default
 
 grid_info ()
 
 grid_info (const int *full_size__, const int *local_size__, const int *border_width__)
 
 ~grid_info ()=default
 
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)
 
void set_lattice_vectors (const T *dh__, const T *dh_inv__)
 
void is_distributed (const bool distributed__)
 
void check_orthogonality (const bool ortho)
 Check if the lattice vectors form a orthogonal basis.
 
void copy_to_host (T *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 ()
 
int3 & full_size ()
 
int3 & local_size ()
 
int3 & lower_corner ()
 
int3 & border_width ()
 
T * data ()
 
const T * data () const
 
gpu_vector< T > & grid ()
 
const gpu_vector< T > & grid () const
 
T * dh ()
 
const T * dh () const
 
T * dh_inv ()
 
const T * dh_inv () const
 
bool is_orthogonal () const
 
bool is_distributed () const
 

Detailed Description

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

Definition at line 216 of file grid_gpu_context.h.

Constructor & Destructor Documentation

◆ grid_info() [1/4]

template<typename T >
rocm_backend::grid_info< T >::grid_info ( const grid_info< T > &  )
delete

◆ grid_info() [2/4]

template<typename T >
rocm_backend::grid_info< T >::grid_info ( grid_info< T > &&  )
defaultnoexcept

◆ grid_info() [3/4]

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

Definition at line 236 of file grid_gpu_context.h.

◆ grid_info() [4/4]

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 238 of file grid_gpu_context.h.

◆ ~grid_info()

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

Member Function Documentation

◆ operator=() [1/2]

template<typename T >
grid_info & rocm_backend::grid_info< T >::operator= ( const grid_info< T > &  )
delete

◆ operator=() [2/2]

template<typename T >
grid_info & rocm_backend::grid_info< T >::operator= ( grid_info< T > &&  )
defaultnoexcept

◆ 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 246 of file grid_gpu_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 251 of file grid_gpu_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 255 of file grid_gpu_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 261 of file grid_gpu_context.h.

◆ size()

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

Definition at line 267 of file grid_gpu_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 269 of file grid_gpu_context.h.

Here is the call graph for this function:

◆ set_lattice_vectors()

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

Definition at line 271 of file grid_gpu_context.h.

◆ is_distributed() [1/3]

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

Definition at line 278 of file grid_gpu_context.h.

◆ check_orthogonality()

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

Check if the lattice vectors form a orthogonal basis.

Definition at line 283 of file grid_gpu_context.h.

◆ copy_to_host() [1/2]

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

Definition at line 314 of file grid_gpu_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 319 of file grid_gpu_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 323 of file grid_gpu_context.h.

Here is the call graph for this function:

◆ is_distributed() [2/3]

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

Definition at line 329 of file grid_gpu_context.h.

◆ full_size()

template<typename T >
int3 & rocm_backend::grid_info< T >::full_size ( )
inline

Definition at line 331 of file grid_gpu_context.h.

◆ local_size()

template<typename T >
int3 & rocm_backend::grid_info< T >::local_size ( )
inline

Definition at line 333 of file grid_gpu_context.h.

◆ lower_corner()

template<typename T >
int3 & rocm_backend::grid_info< T >::lower_corner ( )
inline

Definition at line 335 of file grid_gpu_context.h.

◆ border_width()

template<typename T >
int3 & rocm_backend::grid_info< T >::border_width ( )
inline

Definition at line 337 of file grid_gpu_context.h.

◆ data() [1/2]

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

Definition at line 339 of file grid_gpu_context.h.

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

◆ data() [2/2]

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

Definition at line 340 of file grid_gpu_context.h.

Here is the call graph for this function:

◆ grid() [1/2]

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

Definition at line 342 of file grid_gpu_context.h.

◆ grid() [2/2]

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

Definition at line 343 of file grid_gpu_context.h.

◆ dh() [1/2]

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

Definition at line 345 of file grid_gpu_context.h.

◆ dh() [2/2]

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

Definition at line 346 of file grid_gpu_context.h.

◆ dh_inv() [1/2]

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

Definition at line 348 of file grid_gpu_context.h.

◆ dh_inv() [2/2]

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

Definition at line 349 of file grid_gpu_context.h.

◆ is_orthogonal()

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

Definition at line 351 of file grid_gpu_context.h.

◆ is_distributed() [3/3]

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

Definition at line 352 of file grid_gpu_context.h.


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