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.
config(self)Get the runtime configuration.
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, str library_name)Create a
Library.create_manual_task(self, Library library, ...)Creates a manual task.
create_nullable_array(self, ...)Create a nullable array from a store and a null mask.
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.
create_struct_array(self, tuple fields, ...)Creates a StructLogicalArray.
find_library(self, str library_name)Find a Library.
find_or_create_library(self, ...)Search for an existing
Libraryof a particular name, or create it if it wasn't found.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, ...[, redop])Issue a scatter-gather copy between stores.
prefetch_bloated_instances(self, ...)Gives the runtime a hint that the store can benefit from bloated instances.
start_profiling_range(self)Start a Legion profiling range.
stop_profiling_range(self, str provenance)Stop a Legion profiling range.
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.