deepmd.utils.hostlist

Module Contents

Functions

get_host_names(→ Tuple[str, List[str]])

Get host names of all nodes in the cluster.

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