legate.core.Runtime#
- class legate.core.Runtime#
- __init__(*args, **kwargs)#
Attributes
Library
Machine
uint32_t
uint32_t
Methods
add_shutdown_callback
(self, callback)Add a shutdown callback to be executed on Legate program finalization.
create_array
(self, Type dtype, shape, ...)Create a LogicalArray.
create_array_like
(self, LogicalArray array, ...)Create an array isomorphic to a given array.
create_auto_task
(self, Library library, ...)Creates an auto task.
create_library
(self, unicode library_name)Create a
Library
.create_manual_task
(self, Library library, ...)Creates a manual task.
create_store
(self, Type dtype, shape, ...)Create a LogicalStore.
create_store_from_buffer
(self, Type dtype, ...)Creates a Legate store from a Python object implementing the Python buffer protocol.
create_store_from_scalar
(self, ...)Create a store from a Scalar.
find_library
(self, unicode library_name)Find a Library.
finish
(self)Finish a Legate program.
get_machine
(self)Get the current machine.
issue_copy
(self, LogicalStore target, ...)Issue a copy between two stores.
issue_execution_fence
(self, bool block=False)Issue an execution fence.
issue_fill
(self, array_or_store, value)Fills the array or store with a constant value.
issue_gather
(self, LogicalStore target, ...)Issue a gather copy between stores.
issue_mapping_fence
(self)Issue a mapping fence.
issue_scatter
(self, LogicalStore target, ...)Issue a scatter copy between stores.
issue_scatter_gather
(self, ...)Issue a scatter-gather copy between stores.
prefetch_bloated_instances
(self, ...)Gives the runtime a hint that the store can benefit from bloated instances.
submit
(self, op)Submit a task for execution.
tree_reduce
(self, Library library, ...)Performs a user-defined reduction by building a tree of reduction tasks.