|
| SingleChunkArena (Arena *a_arena, std::size_t a_size) |
|
| ~SingleChunkArena () override |
|
| SingleChunkArena ()=delete |
|
| SingleChunkArena (const SingleChunkArena &rhs)=delete |
|
| SingleChunkArena (SingleChunkArena &&rhs)=delete |
|
SingleChunkArena & | operator= (const SingleChunkArena &rhs)=delete |
|
SingleChunkArena & | operator= (SingleChunkArena &&rhs)=delete |
|
void * | alloc (std::size_t sz) override |
|
void | free (void *pt) override |
| A pure virtual function for deleting the arena pointed to by pt.
|
|
bool | isDeviceAccessible () const override |
|
bool | isHostAccessible () const override |
|
bool | isManaged () const override |
|
bool | isDevice () const override |
|
bool | isPinned () const override |
|
void * | data () const noexcept |
|
virtual | ~Arena ()=default |
|
| Arena () noexcept=default |
|
| Arena (const Arena &rhs)=delete |
|
| Arena (Arena &&rhs)=delete |
|
Arena & | operator= (const Arena &rhs)=delete |
|
Arena & | operator= (Arena &&rhs)=delete |
|
virtual std::pair< void *, std::size_t > | alloc_in_place (void *, std::size_t, std::size_t szmax) |
|
virtual void * | shrink_in_place (void *, std::size_t sz) |
|
virtual std::size_t | freeUnused () |
| Free unused memory back to the system. Return value is the amount memory freed.
|
|
virtual bool | hasFreeDeviceMemory (std::size_t sz) |
| Does the device have enough free memory for allocating this much memory? For CPU builds, this always return true. This is not a const function because it may attempt to release memory back to the system.
|
|
void | registerForProfiling (const std::string &memory_name) |
| Add this Arena to the list of Arenas that are profiled by TinyProfiler.
|
|
void | deregisterFromProfiling () |
| Remove this Arena from the list of Arenas that are profiled by TinyProfiler. This is equivalent to destructing and re-constructing the Arena.
|
|
virtual bool | isStreamOrderedArena () const |
| Is this GPU stream ordered memory allocator?
|
|
const ArenaInfo & | arenaInfo () const |
| Return the ArenaInfo object for querying.
|
|