triqs.utility.mpi_mpi4py.master_gets_host_names

triqs.utility.mpi_mpi4py.master_gets_host_names()[source]

Collect the hostnames of every rank on the master.

Each non-master rank sends socket.gethostname() to rank master, which stores the results in the module-level HostNames dictionary and prints them as Node <rank> on machine <hostname>. A barrier() is taken at the end to keep the ranks in sync.