legate.core.Runtime.submit#
- Runtime.submit(self, op) void #
Submit a task for execution.
Each submitted operation goes through multiple pipeline steps to eventually get scheduled for execution. It’s not guaranteed that the submitted operation starts executing immediately.
The exception to this rule is if the task indicates that it throws an exception. In this case, the scheduling pipeline is first flushed, then the task is executed. This routine does not return until the task has finished executing.
If the task does not indicate that it throws an exception but throws one anyway, the runtime will catch and report the exception traceback then promptly abort the program.
- Parameters:
op (AutoTask | ManualTask) – The task to submit.
- Raises:
Any – If thrown, the exception raised by the task.
TypeError – If the operation is neither an AutoTask or ManualTask