deepmd.utils.hostlist

deepmd.utils.hostlist#

Functions#

get_host_names(→ tuple[str, list[str]])

Get host names of all nodes in the cluster.

Module Contents#

deepmd.utils.hostlist.get_host_names() tuple[str, list[str]][source]#

Get host names of all nodes in the cluster.

If mpi4py is not installed or MPI is not used, then the host name of the current node is returned as those of all nodes.

Returns:
str

Host name of the current node

list[str]

List of host names of all nodes in the cluster