forked from mindspore-Ecosystem/mindspore
!1451 add hccl config file path var RANK_TABLE_FILE
Merge pull request !1451 from jjfeing/master
This commit is contained in:
commit
963f7ee5cd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue