alpaka
Abstraction Library for Parallel Kernel Acceleration
alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx > Struct Template Reference

The CUDA/HIP memory buffer. More...

#include <BufUniformCudaHipRt.hpp>

+ Inheritance diagram for alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >:

Public Member Functions

template<typename TExtent , typename Deleter >
ALPAKA_FN_HOST BufUniformCudaHipRt (DevUniformCudaHipRt< TApi > const &dev, TElem *const pMem, Deleter deleter, TExtent const &extent, std::size_t pitchBytes)
 Constructor. More...
 
- Public Member Functions inherited from alpaka::detail::PitchHolder< TDim, SFINAE >
 PitchHolder (std::size_t)
 
- Public Member Functions inherited from alpaka::internal::ViewAccessOps< BufUniformCudaHipRt< TApi, TElem, TDim, TIdx > >
ALPAKA_FN_HOST auto at (Vec< Dim, TIdx > index) -> reference
 
ALPAKA_FN_HOST auto at (Vec< Dim, TIdx > index) const -> const_reference
 
ALPAKA_FN_HOST auto data () -> pointer
 
ALPAKA_FN_HOST auto data () const -> const_pointer
 
ALPAKA_FN_HOST auto operator* () -> reference
 
ALPAKA_FN_HOST auto operator* () const -> const_reference
 
ALPAKA_FN_HOST auto operator-> () -> pointer
 
ALPAKA_FN_HOST auto operator-> () const -> const_pointer
 
ALPAKA_FN_HOST auto operator[] (Idx i) -> reference
 
ALPAKA_FN_HOST auto operator[] (Idx i) const -> const_reference
 
ALPAKA_FN_HOST auto operator[] (Vec< Dim, TIdx > index) -> reference
 
ALPAKA_FN_HOST auto operator[] (Vec< Dim, TIdx > index) const -> const_reference
 

Public Attributes

DevUniformCudaHipRt< TApi > m_dev
 
Vec< TDim, TIdx > m_extentElements
 
std::shared_ptr< TElem > m_spMem
 

Detailed Description

template<typename TApi, typename TElem, typename TDim, typename TIdx>
struct alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >

The CUDA/HIP memory buffer.

Definition at line 54 of file BufUniformCudaHipRt.hpp.

Constructor & Destructor Documentation

◆ BufUniformCudaHipRt()

template<typename TApi , typename TElem , typename TDim , typename TIdx >
template<typename TExtent , typename Deleter >
ALPAKA_FN_HOST alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >::BufUniformCudaHipRt ( DevUniformCudaHipRt< TApi > const &  dev,
TElem *const  pMem,
Deleter  deleter,
TExtent const &  extent,
std::size_t  pitchBytes 
)
inline

Constructor.

Definition at line 63 of file BufUniformCudaHipRt.hpp.

Member Data Documentation

◆ m_dev

template<typename TApi , typename TElem , typename TDim , typename TIdx >
DevUniformCudaHipRt<TApi> alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >::m_dev

Definition at line 85 of file BufUniformCudaHipRt.hpp.

◆ m_extentElements

template<typename TApi , typename TElem , typename TDim , typename TIdx >
Vec<TDim, TIdx> alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >::m_extentElements

Definition at line 86 of file BufUniformCudaHipRt.hpp.

◆ m_spMem

template<typename TApi , typename TElem , typename TDim , typename TIdx >
std::shared_ptr<TElem> alpaka::BufUniformCudaHipRt< TApi, TElem, TDim, TIdx >::m_spMem

Definition at line 87 of file BufUniformCudaHipRt.hpp.


The documentation for this struct was generated from the following files: