OmniSciDB
94e8789169
|
#include <RenderAllocator.h>
Public Member Functions | |
RenderAllocator (int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id, const unsigned block_size_x, const unsigned grid_size_x, const RAExecutionPolicy execution_policy=RAExecutionPolicy::Device) | |
int8_t * | alloc (const size_t bytes) final |
void | markChunkComplete () |
size_t | getCurrentChunkOffset () const |
size_t | getCurrentChunkSize () const |
size_t | getAllocatedSize () const |
int8_t * | getBasePtr () const |
RAExecutionPolicy | getExecutionPolicy () const |
![]() | |
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_ |
std::unique_ptr< std::mutex > | alloc_mtx_ptr_ |
RAExecutionPolicy | execution_policy_ |
Definition at line 54 of file RenderAllocator.h.
RenderAllocator::RenderAllocator | ( | int8_t * | preallocated_ptr, |
const size_t | preallocated_size, | ||
const size_t | device_id, | ||
const unsigned | block_size_x, | ||
const unsigned | grid_size_x, | ||
const RAExecutionPolicy | execution_policy = RAExecutionPolicy::Device |
||
) |
|
finalvirtual |
size_t RenderAllocator::getAllocatedSize | ( | ) | const |
Definition at line 50 of file RenderAllocator.cpp.
References CHECK.
int8_t * RenderAllocator::getBasePtr | ( | ) | const |
Definition at line 55 of file RenderAllocator.cpp.
References CHECK.
size_t RenderAllocator::getCurrentChunkOffset | ( | ) | const |
Definition at line 40 of file RenderAllocator.cpp.
References CHECK.
size_t RenderAllocator::getCurrentChunkSize | ( | ) | const |
Definition at line 45 of file RenderAllocator.cpp.
References CHECK.
RAExecutionPolicy RenderAllocator::getExecutionPolicy | ( | ) | const |
Definition at line 60 of file RenderAllocator.cpp.
void RenderAllocator::markChunkComplete | ( | ) |
Definition at line 36 of file RenderAllocator.cpp.
References CHECK.
|
private |
Definition at line 82 of file RenderAllocator.h.
|
private |
Definition at line 80 of file RenderAllocator.h.
|
private |
Definition at line 79 of file RenderAllocator.h.
|
private |
Definition at line 78 of file RenderAllocator.h.
|
private |
Definition at line 84 of file RenderAllocator.h.
|
private |
Definition at line 76 of file RenderAllocator.h.
|
private |
Definition at line 77 of file RenderAllocator.h.