From d38fa9051c11d89aa84fa1f4e34d353686e30364 Mon Sep 17 00:00:00 2001 From: jjfeing Date: Sat, 20 Jun 2020 12:01:08 +0800 Subject: [PATCH] fix hccl env value --- mindspore/ccsrc/device/ascend/ascend_kernel_runtime.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mindspore/ccsrc/device/ascend/ascend_kernel_runtime.cc b/mindspore/ccsrc/device/ascend/ascend_kernel_runtime.cc index 5a89c80692..b2bd13bab2 100644 --- a/mindspore/ccsrc/device/ascend/ascend_kernel_runtime.cc +++ b/mindspore/ccsrc/device/ascend/ascend_kernel_runtime.cc @@ -536,8 +536,8 @@ bool AscendKernelRuntime::HcclInit() { 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; } - return false; } std::string rank_id_str = GetRankId(); auto full_path = realpath(config_path_str, nullptr);