mindspore.parallel.restore_group_info_list

View Source On Gitee
mindspore.parallel.restore_group_info_list(group_info_file_name)[source]

Extract rank list information from communication domain files. To save the group info file, please export GROUP_INFO_FIL environment variables like "export GROUP_INFO_FILE=/data/group_info.pb".

Parameters

group_info_file_name (str) – Name of group information file.

Returns

List, the rank list.

Raises
  • ValueError – group information file is incorrect.

  • TypeErrorgroup_info_file_name is not str.

Supported Platforms:

Ascend

Examples

>>> import mindspore as ms
>>> from mindspore.parallel import restore_group_info_list
>>> ms.restore_list = restore_group_info_list("./group_info.pb")