|
QDP++
|
#include <qdp_pool_allocator.h>
Public Member Functions | |
| void | init (size_t PoolSizeInMB) |
| void * | allocate (size_t n_bytes, const MemoryPoolHint &mem_pool_hint) |
| void | free (void *mem) |
| void | pushFunc (const char *func, int line) |
| void | popFunc (void) |
| void | dump () |
Friends | |
| class | QDP::CreateUsingNew< QDP::Allocator::QDPPoolAllocator > |
| class | QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator > |
Definition at line 36 of file qdp_pool_allocator.h.
| void * QDP::Allocator::QDPPoolAllocator::allocate | ( | size_t | n_bytes, |
| const MemoryPoolHint & | mem_pool_hint = DEFAULT ) |
Definition at line 66 of file qdp_pool_allocator.cc.
References allocate(), QDP::QDPIO::cout, QDP::Allocator::DEFAULT, QDP::QDP_abort(), and QDP_ALIGNMENT_SIZE.
Referenced by allocate(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
| void QDP::Allocator::QDPPoolAllocator::dump | ( | void | ) |
Definition at line 127 of file qdp_pool_allocator.cc.
References QDP::QDPIO::cout, dump(), QDP::Layout::primaryNode(), QDP::Allocator::PoolMemInfo::Size, and QDP::Allocator::PoolMemInfo::Unaligned.
Referenced by dump(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
| void QDP::Allocator::QDPPoolAllocator::free | ( | void * | mem | ) |
Definition at line 96 of file qdp_pool_allocator.cc.
References QDP::QDPIO::cout, free(), and QDP::QDP_abort().
Referenced by free(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
| void QDP::Allocator::QDPPoolAllocator::init | ( | size_t | PoolSizeInMB | ) |
Definition at line 35 of file qdp_pool_allocator.cc.
References QDP::QDPIO::cout, init(), and QDP::QDP_abort().
Referenced by init(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
| void QDP::Allocator::QDPPoolAllocator::popFunc | ( | void | ) |
Definition at line 126 of file qdp_pool_allocator.cc.
References popFunc().
Referenced by popFunc(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
| void QDP::Allocator::QDPPoolAllocator::pushFunc | ( | const char * | func, |
| int | line ) |
Definition at line 125 of file qdp_pool_allocator.cc.
References pushFunc().
Referenced by pushFunc(), and QDP::CreateStatic< QDP::Allocator::QDPPoolAllocator >.
|
friend |
Definition at line 49 of file qdp_pool_allocator.h.
References allocate(), dump(), free(), init(), popFunc(), and pushFunc().
|
friend |
Definition at line 49 of file qdp_pool_allocator.h.