alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Implementation of static block shared memory provider. More...
#include <BlockSharedMemStMemberImpl.hpp>
Public Member Functions | |
BlockSharedMemStMemberImpl (std::uint8_t *mem, std::size_t capacity) | |
template<typename T > | |
void | alloc (std::uint32_t id) const |
template<typename T > | |
auto | getLatestVarPtr () const -> T * |
Get last allocated variable. More... | |
template<typename T > | |
auto | getVarPtr (std::uint32_t id) const -> T * |
Give the pointer to an exiting variable. More... | |
Implementation of static block shared memory provider.
externally allocated fixed-size memory, likely provided by BlockSharedMemDynMember.
Definition at line 23 of file BlockSharedMemStMemberImpl.hpp.
|
inline |
Definition at line 38 of file BlockSharedMemStMemberImpl.hpp.
|
inline |
Definition at line 51 of file BlockSharedMemStMemberImpl.hpp.
|
inline |
Get last allocated variable.
Definition at line 105 of file BlockSharedMemStMemberImpl.hpp.
|
inline |
Give the pointer to an exiting variable.
T | type of the variable |
id | unique id of the variable |
Definition at line 79 of file BlockSharedMemStMemberImpl.hpp.