![]() |
alpaka
Abstraction Library for Parallel Kernel Acceleration
|
Implementation of static block shared memory provider. More...
#include <BlockSharedMemStMemberImpl.hpp>
Inheritance diagram for alpaka::detail::BlockSharedMemStMemberImpl< TMinDataAlignBytes >: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. | |
| template<typename T > | |
| auto | getVarPtr (std::uint32_t id) const -> T * |
| Give the pointer to an exiting variable. | |
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 100 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 73 of file BlockSharedMemStMemberImpl.hpp.