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

#include <grid_gpu_context.h>

Public Member Functions

 gpu_vector ()=default
 
 gpu_vector (const gpu_vector &)=delete
 
gpu_vectoroperator= (const gpu_vector &)=delete
 
 gpu_vector (gpu_vector &&other) noexcept
 
gpu_vectoroperator= (gpu_vector &&other) noexcept
 
 gpu_vector (const size_t size__)
 
 gpu_vector (const size_t size__, void *ptr__)
 
 ~gpu_vector ()
 
size_t size () const
 
void copy_to_gpu (const T *data__)
 
void copy_to_gpu (const T *data__, offloadStream_t &stream__)
 
void copy_associated_host_to_gpu (offloadStream_t &stream__)
 
void copy_from_gpu (T *data__, offloadStream_t &stream__)
 
void copy_gpu_to_associated_host (offloadStream_t &stream__)
 
void zero (offloadStream_t &stream__)
 
void associate (void *host_ptr__, void *device_ptr__, const size_t size__)
 
void zero ()
 
void copy_to_gpu (const std::vector< T > &data__)
 
void resize (const size_t new_size__)
 
void clear ()
 
void reset ()
 
T * data ()
 
const T * data () const
 

Detailed Description

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

Definition at line 41 of file grid_gpu_context.h.

Constructor & Destructor Documentation

◆ gpu_vector() [1/5]

template<typename T >
rocm_backend::gpu_vector< T >::gpu_vector ( )
default

◆ gpu_vector() [2/5]

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

◆ gpu_vector() [3/5]

template<typename T >
rocm_backend::gpu_vector< T >::gpu_vector ( gpu_vector< T > &&  other)
inlinenoexcept

Definition at line 68 of file grid_gpu_context.h.

◆ gpu_vector() [4/5]

template<typename T >
rocm_backend::gpu_vector< T >::gpu_vector ( const size_t  size__)
inlineexplicit

Definition at line 79 of file grid_gpu_context.h.

Here is the call graph for this function:

◆ gpu_vector() [5/5]

template<typename T >
rocm_backend::gpu_vector< T >::gpu_vector ( const size_t  size__,
void *  ptr__ 
)
inline

Definition at line 92 of file grid_gpu_context.h.

◆ ~gpu_vector()

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

Definition at line 98 of file grid_gpu_context.h.

Here is the call graph for this function:

Member Function Documentation

◆ operator=() [1/2]

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

◆ operator=() [2/2]

template<typename T >
gpu_vector & rocm_backend::gpu_vector< T >::operator= ( gpu_vector< T > &&  other)
inlinenoexcept

Definition at line 70 of file grid_gpu_context.h.

Here is the call graph for this function:

◆ size()

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

Definition at line 100 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ copy_to_gpu() [1/3]

template<typename T >
void rocm_backend::gpu_vector< T >::copy_to_gpu ( const T *  data__)
inline

Definition at line 102 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ copy_to_gpu() [2/3]

template<typename T >
void rocm_backend::gpu_vector< T >::copy_to_gpu ( const T *  data__,
offloadStream_t &  stream__ 
)
inline

Definition at line 108 of file grid_gpu_context.h.

◆ copy_associated_host_to_gpu()

template<typename T >
void rocm_backend::gpu_vector< T >::copy_associated_host_to_gpu ( offloadStream_t &  stream__)
inline

Definition at line 115 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ copy_from_gpu()

template<typename T >
void rocm_backend::gpu_vector< T >::copy_from_gpu ( T *  data__,
offloadStream_t &  stream__ 
)
inline

Definition at line 125 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ copy_gpu_to_associated_host()

template<typename T >
void rocm_backend::gpu_vector< T >::copy_gpu_to_associated_host ( offloadStream_t &  stream__)
inline

Definition at line 132 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ zero() [1/2]

template<typename T >
void rocm_backend::gpu_vector< T >::zero ( offloadStream_t &  stream__)
inline

Definition at line 142 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ associate()

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

Definition at line 148 of file grid_gpu_context.h.

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

◆ zero() [2/2]

template<typename T >
void rocm_backend::gpu_vector< T >::zero ( )
inline

Definition at line 160 of file grid_gpu_context.h.

◆ copy_to_gpu() [3/3]

template<typename T >
void rocm_backend::gpu_vector< T >::copy_to_gpu ( const std::vector< T > &  data__)
inline

Definition at line 165 of file grid_gpu_context.h.

◆ resize()

template<typename T >
void rocm_backend::gpu_vector< T >::resize ( const size_t  new_size__)
inline

Definition at line 175 of file grid_gpu_context.h.

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

◆ clear()

template<typename T >
void rocm_backend::gpu_vector< T >::clear ( )
inline

Definition at line 197 of file grid_gpu_context.h.

◆ reset()

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

Definition at line 200 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ data() [1/2]

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

Definition at line 212 of file grid_gpu_context.h.

Here is the caller graph for this function:

◆ data() [2/2]

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

Definition at line 213 of file grid_gpu_context.h.


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