Browse Source

!10510 adapt to the hccl interface

From: @hwjiaorui
Reviewed-by: @kisnwang,@zhoufeng54
Signed-off-by: @zhoufeng54
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
9f2ff1fd30
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      mindspore/ccsrc/runtime/device/ascend/executor/hccl_dynamic_kernel.cc

+ 3
- 3
mindspore/ccsrc/runtime/device/ascend/executor/hccl_dynamic_kernel.cc View File

@@ -145,7 +145,7 @@ bool HcclExecutorManager::Initialize() {
return false;
}

auto HcomExecutorInitialize = (HcclResult(*)())dlsym(handle_, "HcomExcutorInitialize");
auto HcomExecutorInitialize = (HcclResult(*)())dlsym(handle_, "HcomExecInitialize");
if (HcomExecutorInitialize == nullptr) {
MS_LOG(ERROR) << "dlsym HcomExecutorInitialize failed";
return false;
@@ -167,7 +167,7 @@ bool HcclExecutorManager::Finalize() {
if (!initialized_) {
return true;
}
auto HcomExecutorFinalize = (HcclResult(*)())dlsym(handle_, "HcomExcutorFinalize");
auto HcomExecutorFinalize = (HcclResult(*)())dlsym(handle_, "HcomExecFinalize");
if (HcomExecutorFinalize == nullptr) {
MS_LOG(ERROR) << "Fail to dlsym HcomExecutorFinalize";
return false;
@@ -185,7 +185,7 @@ bool HcclExecutorManager::Finalize() {
return true;
}

void *HcclExecutorManager::GetHcomOpertion() { return dlsym(handle_, "EnqueueHcomOpertion"); }
void *HcclExecutorManager::GetHcomOpertion() { return dlsym(handle_, "HcomExecEnqueueOperation"); }
void HcclExecutorManager::CloseHandle() {
if (dlclose(handle_) != 0) {
MS_LOG(WARNING) << "Failed to close hcom handle";


Loading…
Cancel
Save