8#ifndef QDP_POOL_ALLOCATOR
9#define QDP_POOL_ALLOCATOR
12#define TBB_PREVIEW_MEMORY_POOL 1
13#include "tbb/memory_pool.h"
36 class QDPPoolAllocator {
39 QDPPoolAllocator(
const QDPPoolAllocator& c) {}
42 void operator=(
const QDPPoolAllocator& c) {}
48 QDPPoolAllocator(
void);
54 void
init(size_t PoolSizeInMB);
56 void*
allocate(size_t n_bytes, const MemoryPoolHint& mem_pool_hint);
60 void
pushFunc(const char *func, int line);
67 unsigned char* _MyMem;
68 tbb::fixed_pool* _LargePool;
void * allocate(size_t n_bytes, const MemoryPoolHint &mem_pool_hint)
void init(size_t PoolSizeInMB)
void pushFunc(const char *func, int line)
std::map< void *, PoolMemInfo > PoolMapT
Yet another random number generator.
unsigned char * Unaligned