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,)
,strides
would be[4]
(entryi
given by4*i
). #. For an array whose entries are 8 bytes long, and whose shape is(1, 2,)
,strides
would 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 by
48*i + 24*j + 8*k`).
-
mapping::StoreTarget target = {}#
The type of memory that
ptr
resides in.
-
void *ptr = {}#