提交 4960dada 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!227 replace MINDSPORE_HCCL_CONFIG_PATH

Merge pull request !227 from zhangchengmin/temp_mod
...@@ -288,13 +288,13 @@ EXEC_PATH=$(pwd) ...@@ -288,13 +288,13 @@ EXEC_PATH=$(pwd)
test_dist_8pcs() test_dist_8pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_8pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_8pcs.json
export RANK_SIZE=8 export RANK_SIZE=8
} }
test_dist_2pcs() test_dist_2pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_2pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_2pcs.json
export RANK_SIZE=2 export RANK_SIZE=2
} }
...@@ -334,7 +334,7 @@ cd ../ ...@@ -334,7 +334,7 @@ cd ../
The variables `DATA_PATH` and `RANK_SIZE` need to be transferred to the script, which indicate the path of the dataset and the number of devices, respectively. The variables `DATA_PATH` and `RANK_SIZE` need to be transferred to the script, which indicate the path of the dataset and the number of devices, respectively.
The necessary environment variables are as follows: The necessary environment variables are as follows:
- `MINDSPORE_HCCL_CONFIG_PATH`: path for storing the networking information file. - `RANK_TABLE_FILE`: path for storing the networking information file.
- `DEVICE_ID`: actual sequence number of the current device on the corresponding host. - `DEVICE_ID`: actual sequence number of the current device on the corresponding host.
- `RANK_ID`: logical sequence number of the current device. - `RANK_ID`: logical sequence number of the current device.
For details about other environment variables, see configuration items in the installation guide. For details about other environment variables, see configuration items in the installation guide.
......
...@@ -286,13 +286,13 @@ EXEC_PATH=$(pwd) ...@@ -286,13 +286,13 @@ EXEC_PATH=$(pwd)
test_dist_8pcs() test_dist_8pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_8pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_8pcs.json
export RANK_SIZE=8 export RANK_SIZE=8
} }
test_dist_2pcs() test_dist_2pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_2pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_2pcs.json
export RANK_SIZE=2 export RANK_SIZE=2
} }
...@@ -332,7 +332,7 @@ cd ../ ...@@ -332,7 +332,7 @@ cd ../
脚本需要传入变量`DATA_PATH``RANK_SIZE`,分别表示数据集的路径和卡的数量。 脚本需要传入变量`DATA_PATH``RANK_SIZE`,分别表示数据集的路径和卡的数量。
其中必要的环境变量有, 其中必要的环境变量有,
- `MINDSPORE_HCCL_CONFIG_PATH`:组网信息文件的路径。 - `RANK_TABLE_FILE`:组网信息文件的路径。
- `DEVICE_ID`:当前卡在机器上的实际序号。 - `DEVICE_ID`:当前卡在机器上的实际序号。
- `RANK_ID`: 当前卡的逻辑序号。 - `RANK_ID`: 当前卡的逻辑序号。
其余环境变量请参考安装教程中的配置项。 其余环境变量请参考安装教程中的配置项。
......
...@@ -8,13 +8,13 @@ EXEC_PATH=$(pwd) ...@@ -8,13 +8,13 @@ EXEC_PATH=$(pwd)
test_dist_8pcs() test_dist_8pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_8pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_8pcs.json
export RANK_SIZE=8 export RANK_SIZE=8
} }
test_dist_2pcs() test_dist_2pcs()
{ {
export MINDSPORE_HCCL_CONFIG_PATH=${EXEC_PATH}/rank_table_2pcs.json export RANK_TABLE_FILE=${EXEC_PATH}/rank_table_2pcs.json
export RANK_SIZE=2 export RANK_SIZE=2
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册