Legate.jl
Loading...
Searching...
No Matches
legate_wrapper::data Namespace Reference

Classes

struct  GetPtrFunctor

Functions

Scalar string_to_scalar (std::string str)
 Convert a string to a Scalar.
LogicalArray create_unbound_array (const Type &ty, std::uint32_t dim=1, bool nullable=false)
 Create an unbound array.
LogicalArray create_array (const Shape &shape, const Type &ty, bool nullable=false, bool optimize_scalar=false)
 Create an array with a specified shape.
LogicalStore create_unbound_store (const Type &ty, std::uint32_t dim=1)
 Create an unbound store.
LogicalStore create_store (const Shape &shape, const Type &ty, bool optimize_scalar=false)
 Create a store with a specified shape.
LogicalStore store_from_scalar (const Scalar &scalar, const Shape &shape=Shape{1})
 Create a store from a scalar value.
LogicalStore attach_external_store_sysmem (void *ptr, const Shape &shape, const Type &ty)
 Attach an external store in system memory.
LogicalStore attach_external_store_fbmem (int device_id, void *ptr, const Shape &shape, const Type &ty, bool readonly)
 Attach an external store in frame buffer memory.
void * get_ptr (legate::PhysicalStore *store)
 Get a pointer to the data in a PhysicalStore.

Function Documentation

◆ attach_external_store_fbmem()

LogicalStore legate_wrapper::data::attach_external_store_fbmem ( int device_id,
void * ptr,
const Shape & shape,
const Type & ty,
bool readonly )
inline

Attach an external store in frame buffer memory.

Parameters
device_idThe device ID.
ptrPointer to the external memory.
shapeThe shape of the store.
tyThe type of the store elements.
readonlyWhether the store is read-only.

◆ attach_external_store_sysmem()

LogicalStore legate_wrapper::data::attach_external_store_sysmem ( void * ptr,
const Shape & shape,
const Type & ty )
inline

Attach an external store in system memory.

Parameters
ptrPointer to the external memory.
shapeThe shape of the store.
tyThe type of the store elements.

◆ create_array()

LogicalArray legate_wrapper::data::create_array ( const Shape & shape,
const Type & ty,
bool nullable = false,
bool optimize_scalar = false )
inline

Create an array with a specified shape.

Parameters
shapeThe shape of the array.
tyThe type of the array elements.
nullableWhether the array can contain nulls (default false).
optimize_scalarWhether to optimize scalar storage (default false).

◆ create_store()

LogicalStore legate_wrapper::data::create_store ( const Shape & shape,
const Type & ty,
bool optimize_scalar = false )
inline

Create a store with a specified shape.

Parameters
shapeThe shape of the store.
tyThe type of the store elements.
optimize_scalarWhether to optimize scalar storage (default false).

◆ create_unbound_array()

LogicalArray legate_wrapper::data::create_unbound_array ( const Type & ty,
std::uint32_t dim = 1,
bool nullable = false )
inline

Create an unbound array.

Parameters
tyThe type of the array elements.
dimThe number of dimensions (default 1).
nullableWhether the array can contain nulls (default false).

◆ create_unbound_store()

LogicalStore legate_wrapper::data::create_unbound_store ( const Type & ty,
std::uint32_t dim = 1 )
inline

Create an unbound store.

Parameters
tyThe type of the store elements.
dimThe dimensionality (default 1).

◆ get_ptr()

void * legate_wrapper::data::get_ptr ( legate::PhysicalStore * store)
inline

Get a pointer to the data in a PhysicalStore.

Parameters
storePointer to the PhysicalStore.

◆ store_from_scalar()

LogicalStore legate_wrapper::data::store_from_scalar ( const Scalar & scalar,
const Shape & shape = Shape{1} )
inline

Create a store from a scalar value.

Parameters
scalarThe scalar to store.
shapeThe shape of the store (default 1-element).

◆ string_to_scalar()

Scalar legate_wrapper::data::string_to_scalar ( std::string str)
inline

Convert a string to a Scalar.

Parameters
strThe string to convert.