Brick Library 0.1
Performance-portable stencil datalayout & codegen
|
Initializing and holding the storage of bricks. More...
#include <brick.h>
Static Public Member Functions | |
static BrickStorage | allocate (long chunks, size_t step) |
Allocation using *alloc. | |
static BrickStorage | mmap_alloc (long chunks, long step) |
mmap allocator using default (new) file | |
static BrickStorage | mmap_alloc (long chunks, long step, void *mmap_fd, size_t offset) |
mmap allocator using specified file starting from certain offset | |
Public Attributes | |
std::shared_ptr< bElem > | dat |
Pointer holding brick data. | |
long | chunks |
Number of chunks. | |
size_t | step |
Size of a chunk in number of elements. | |
void * | mmap_info = nullptr |
MMAP data structure when using mmap as allocator. | |
long | step |
Initializing and holding the storage of bricks.
It requires knowing how many bricks to store before allocating.
Built-in allocators are host-only.
|
inlinestatic |
Allocation using *alloc.
|
static |
mmap allocator using default (new) file
|
static |
mmap allocator using specified file starting from certain offset
long BrickStorage::chunks |
Number of chunks.
A chunk can contain multiple bricks from different sub-fields. Forming structure-of-array.
std::shared_ptr< bElem > BrickStorage::dat |
Pointer holding brick data.
void * BrickStorage::mmap_info = nullptr |
MMAP data structure when using mmap as allocator.
size_t BrickStorage::step |
Size of a chunk in number of elements.
long BrickStorage::step |