OmniSciDB
a5dc49c757
|
#include <RenderAllocator.h>
Public Member Functions | |
RenderAllocator (int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id) | |
int8_t * | alloc (const size_t bytes) final |
void | markChunkComplete () |
size_t | getCurrentChunkOffset () const |
size_t | getCurrentChunkSize () const |
size_t | getAllocatedSize () const |
size_t | getPeakAllocatedSize () const |
int8_t * | getBasePtr () const |
Public Member Functions inherited from Allocator | |
Allocator () | |
virtual | ~Allocator () |
Private Attributes | |
int8_t * | preallocated_ptr_ |
const size_t | preallocated_size_ |
const size_t | device_id_ |
size_t | crt_chunk_offset_bytes_ |
size_t | crt_allocated_bytes_ |
size_t | peak_allocated_bytes_ |
std::unique_ptr< std::mutex > | alloc_mtx_ptr_ |
Definition at line 52 of file RenderAllocator.h.
RenderAllocator::RenderAllocator | ( | int8_t * | preallocated_ptr, |
const size_t | preallocated_size, | ||
const size_t | device_id | ||
) |
Definition at line 21 of file RenderAllocator.cpp.
|
finalvirtual |
size_t RenderAllocator::getAllocatedSize | ( | ) | const |
Definition at line 47 of file RenderAllocator.cpp.
References CHECK.
Referenced by QueryMemoryInitializer::createAndInitializeGroupByBufferGpu().
int8_t * RenderAllocator::getBasePtr | ( | ) | const |
Definition at line 52 of file RenderAllocator.cpp.
References CHECK.
size_t RenderAllocator::getCurrentChunkOffset | ( | ) | const |
Definition at line 37 of file RenderAllocator.cpp.
References CHECK.
size_t RenderAllocator::getCurrentChunkSize | ( | ) | const |
Definition at line 42 of file RenderAllocator.cpp.
References CHECK.
size_t RenderAllocator::getPeakAllocatedSize | ( | ) | const |
void RenderAllocator::markChunkComplete | ( | ) |
Definition at line 33 of file RenderAllocator.cpp.
References CHECK.
|
private |
Definition at line 77 of file RenderAllocator.h.
|
private |
Definition at line 74 of file RenderAllocator.h.
|
private |
Definition at line 73 of file RenderAllocator.h.
|
private |
Definition at line 72 of file RenderAllocator.h.
|
private |
Definition at line 75 of file RenderAllocator.h.
|
private |
Definition at line 70 of file RenderAllocator.h.
|
private |
Definition at line 71 of file RenderAllocator.h.