legate.core.Library.register_task#

Library.register_task(self, TaskInfo task_info) _GlobalTaskID#

Register a task with the library.

Parameters:

task_info (TaskInfo) – The TaskInfo object describing the task.

Returns:

The global task ID of the task.

Return type:

GlobalTaskID

Raises:

RuntimeError – If the TaskInfo object is invalid or has no variants.