alpaka
Abstraction Library for Parallel Kernel Acceleration
Loading...
Searching...
No Matches
alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T > Struct Template Reference

Helper class to wrap device global memory data. More...

#include <globalMem.hpp>

Public Member Functions

constexpr GlobalDeviceMemoryDataWrapper (auto const &... args)
T * data ()
T const * data () const

Public Attributes

value

Detailed Description

template<typename T>
struct alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T >

Helper class to wrap device global memory data.

The reason why this wrapper is required is that SYCL oneAPI is using a special type which does not support C array initialization. All arguments passed to the wrapper constructor are forwarded to the data member.

Definition at line 146 of file globalMem.hpp.

Constructor & Destructor Documentation

◆ GlobalDeviceMemoryDataWrapper()

template<typename T>
alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T >::GlobalDeviceMemoryDataWrapper ( auto const &... args)
inlineconstexpr

Definition at line 148 of file globalMem.hpp.

Member Function Documentation

◆ data() [1/2]

template<typename T>
T * alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T >::data ( )
inline

Definition at line 154 of file globalMem.hpp.

◆ data() [2/2]

template<typename T>
T const * alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T >::data ( ) const
inline

Definition at line 159 of file globalMem.hpp.

Member Data Documentation

◆ value

template<typename T>
T alpaka::onAcc::internal::GlobalDeviceMemoryDataWrapper< T >::value

Definition at line 152 of file globalMem.hpp.


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