sar.nfs_ip_init

nfs_ip_init(_rank: int, ip_file: str) str

Communicate the ip address of the master machine/worker (with rank = 0) to other machines/workers through the file system

Parameters:
  • _rank (int) – Rank of the current machine

  • ip_file (str) – Path to the ip file that will be used to communicate the ip address between workers. The master will write its ip address to this file. Other workers will block until this file is created, and then read the ip address from it.

Returns:

A string with the ip address of the master machine/worker