legate::InlineAllocation#
-
class InlineAllocation#
An object representing the raw memory and strides held by a
PhysicalStore.Public Members
-
void *ptr = {}#
pointer to the start of the allocation.
-
std::vector<std::size_t> strides = {}#
vector of byte-offsets into
ptr.The offsets are given in bytes, and represent the number of bytes needed to jump to the next array element in the corresponding dimension. For example:
#. For an array whose entries are 4 bytes long, and whose shape is
(1,),strideswould be[4](entryigiven by4*i). #. For an array whose entries are 8 bytes long, and whose shape is(1, 2,),strideswould be[16, 8](entry(i, j)given by16*i + 8*j). #. For an array whose entries are 8 bytes long, and whose shape is(1, 2, 3), strideswould be[48, 24, 8](entry(i, j, k)given by48*i + 24*j + 8*k`).
-
mapping::StoreTarget target = {}#
The type of memory that
ptrresides in.
-
void *ptr = {}#