#include <GroupAllocator.h>
|
| GroupAllocator (int group_num, std::size_t page_size) |
|
| ~GroupAllocator () |
|
void | freeall () |
|
template<class T > |
void | free (T *ptr) |
|
template<class T > |
void | allocate (T **ptr, size_t s, bool forceAligned128) |
|
void | moveToDevice (int device, cudaStream_t stream) |
|
size_t | pagesAllocated () |
|
size_t | getPageSize () |
|
Allocates with group affinity
◆ GroupAllocator()
groupallocator::GroupAllocator::GroupAllocator |
( |
int |
group_num, |
|
|
std::size_t |
page_size |
|
) |
| |
|
inline |
Constructor takes group_num to allocate to
- Parameters
-
◆ ~GroupAllocator()
groupallocator::GroupAllocator::~GroupAllocator |
( |
| ) |
|
|
inline |
◆ allocate()
template<class T >
void groupallocator::GroupAllocator::allocate |
( |
T ** |
ptr, |
|
|
size_t |
s, |
|
|
bool |
forceAligned128 |
|
) |
| |
|
inline |
Allocates memory of type T and sets *ptr to this memory of size s
- Template Parameters
-
- Parameters
-
◆ free()
template<class T >
void groupallocator::GroupAllocator::free |
( |
T * |
ptr | ) |
|
|
inline |
Free pointer T* ptr
- Template Parameters
-
- Parameters
-
◆ freeall()
void groupallocator::GroupAllocator::freeall |
( |
| ) |
|
|
inline |
Function to free all memory of group allocator
◆ moveToDevice()
void groupallocator::GroupAllocator::moveToDevice |
( |
int |
device, |
|
|
cudaStream_t |
stream |
|
) |
| |
|
inline |
Move to memory device in stream
- Parameters
-
The documentation for this class was generated from the following file: