get_node_rank#

composer.utils.dist.get_node_rank()[source]#

Returns the node rank.

For example, if there are 2 nodes, and 2 ranks per node, then global ranks 0-1 will have a node rank of 0, and global ranks 2-3 will have a node rank of 1.

Returns

int โ€“ The node rank, starting at 0.