!10510 adapt to the hccl interface

From: @hwjiaorui
Reviewed-by: @kisnwang,@zhoufeng54
Signed-off-by: @zhoufeng54
pull/10510/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 9f2ff1fd30

@ -145,7 +145,7 @@ bool HcclExecutorManager::Initialize() {
return false; return false;
} }
auto HcomExecutorInitialize = (HcclResult(*)())dlsym(handle_, "HcomExcutorInitialize"); auto HcomExecutorInitialize = (HcclResult(*)())dlsym(handle_, "HcomExecInitialize");
if (HcomExecutorInitialize == nullptr) { if (HcomExecutorInitialize == nullptr) {
MS_LOG(ERROR) << "dlsym HcomExecutorInitialize failed"; MS_LOG(ERROR) << "dlsym HcomExecutorInitialize failed";
return false; return false;
@ -167,7 +167,7 @@ bool HcclExecutorManager::Finalize() {
if (!initialized_) { if (!initialized_) {
return true; return true;
} }
auto HcomExecutorFinalize = (HcclResult(*)())dlsym(handle_, "HcomExcutorFinalize"); auto HcomExecutorFinalize = (HcclResult(*)())dlsym(handle_, "HcomExecFinalize");
if (HcomExecutorFinalize == nullptr) { if (HcomExecutorFinalize == nullptr) {
MS_LOG(ERROR) << "Fail to dlsym HcomExecutorFinalize"; MS_LOG(ERROR) << "Fail to dlsym HcomExecutorFinalize";
return false; return false;
@ -185,7 +185,7 @@ bool HcclExecutorManager::Finalize() {
return true; return true;
} }
void *HcclExecutorManager::GetHcomOpertion() { return dlsym(handle_, "EnqueueHcomOpertion"); } void *HcclExecutorManager::GetHcomOpertion() { return dlsym(handle_, "HcomExecEnqueueOperation"); }
void HcclExecutorManager::CloseHandle() { void HcclExecutorManager::CloseHandle() {
if (dlclose(handle_) != 0) { if (dlclose(handle_) != 0) {
MS_LOG(WARNING) << "Failed to close hcom handle"; MS_LOG(WARNING) << "Failed to close hcom handle";

Loading…
Cancel
Save