提交 963f7ee5 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!1451 add hccl config file path var RANK_TABLE_FILE

Merge pull request !1451 from jjfeing/master
......@@ -473,9 +473,12 @@ bool AscendKernelRuntime::HcclInit() {
}
MS_LOG(INFO) << "do hcom init";
const char *config_path_str = std::getenv("MINDSPORE_HCCL_CONFIG_PATH");
auto config_path_str = std::getenv("MINDSPORE_HCCL_CONFIG_PATH");
if (config_path_str == nullptr) {
MS_LOG(ERROR) << "get hccl json config failed, please set env MINDSPORE_HCCL_CONFIG_PATH";
config_path_str = std::getenv("RANK_TABLE_FILE");
if (config_path_str == nullptr) {
MS_LOG(ERROR) << "get hccl json config failed, please set env MINDSPORE_HCCL_CONFIG_PATH or RANK_TABLE_FILE";
}
return false;
}
auto full_path = realpath(config_path_str, nullptr);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册