get_rank#

ray.util.collective.collective.get_rank(group_name: str = 'default') → int[source]#

Return the rank of this process in the given group.

Parameters:

group_name (str) – the name of the group to query

Returns:

the rank of this process in the named group, -1 if the group does not exist or the process does not belong to the group.

Return type:

int