alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type > Struct Template Reference

Helper class to provide access to device global memory variables. More...

#include <globalMem.hpp>

Inheritance diagram for alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >:

Public Types

using type = T_Type

Public Member Functions

constexpr decltype(auto) get () const
constexpr decltype(auto) get () const
constexpr operator type & ()
constexpr operator type const & () const

Private Member Functions

template<alpaka::concepts::Api T_Api>
constexpr decltype(auto) getHandle (T_Api api) const
 Get the handle to call native API specific memcopy for global device memory operation.

Friends

struct onHost::internal::MemcpyDeviceGlobal

Detailed Description

template<typename T_Storage, typename T_Type>
struct alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >

Helper class to provide access to device global memory variables.

Definition at line 189 of file globalMem.hpp.

Member Typedef Documentation

◆ type

template<typename T_Storage, typename T_Type>
using alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::type = T_Type

Definition at line 207 of file globalMem.hpp.

Member Function Documentation

◆ get() [1/2]

template<typename T_Storage, typename T_Type>
decltype(auto) alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::get ( ) const
inlineconstexpr

Definition at line 214 of file globalMem.hpp.

◆ get() [2/2]

template<typename T_Storage, typename T_Type>
decltype(auto) alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::get ( ) const
inlineconstexpr

Definition at line 209 of file globalMem.hpp.

◆ getHandle()

template<typename T_Storage, typename T_Type>
template<alpaka::concepts::Api T_Api>
decltype(auto) alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::getHandle ( T_Api api) const
inlineconstexprprivate

Get the handle to call native API specific memcopy for global device memory operation.

Attention
This method is for internal usage only.
Returns
type depends on the native API e.g Cuda, OneApi, ...

Definition at line 201 of file globalMem.hpp.

◆ operator type &()

template<typename T_Storage, typename T_Type>
alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::operator type & ( )
inlineconstexpr

Definition at line 220 of file globalMem.hpp.

◆ operator type const &()

template<typename T_Storage, typename T_Type>
alpaka::onAcc::internal::GlobalDeviceMemoryWrapper< T_Storage, T_Type >::operator type const & ( ) const
inlineconstexpr

Definition at line 225 of file globalMem.hpp.

◆ onHost::internal::MemcpyDeviceGlobal

template<typename T_Storage, typename T_Type>
friend struct onHost::internal::MemcpyDeviceGlobal
friend

Definition at line 192 of file globalMem.hpp.


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