legate.core.Machine.only#

Machine.only(self, targets: Iterable[TaskTarget] | TaskTarget) Machine#

Returns a machine that contains only the processors of given kinds

Parameters:

targets (TaskTargets) – Kinds of processors to leave in the returned machine

Returns:

A new machine only with the chosen processors

Return type:

Machine