legate.core.TaskContext.is_single_task#
- TaskContext.is_single_task(self) bool #
Indicates whether only a single instance of the task is running.
In effect, this may be used to determine if a task is parallelized. If this returns false, then the task is running in parallel.
- Returns:
True
if the task is a single task,False
otherwise.- Return type: