Minor fix for some msccl installations (#862)

[ROCm/rccl commit: 5bcd3768cc]
这个提交包含在:
gilbertlee-amd 编写, GitHub 于 2023-08-23 13:48:58 -06:00 提交
1 父节点 5e60fb93d5
当前提交 3dd880fe74
1 个文件已更改
+1 -1
@@ -98,7 +98,7 @@ static ncclResult_t mscclInternalSchedulerInit() {
mscclAlgoDirStr += (mscclUnitTestMode && mscclUnitTestMode()) ? mscclUnitTestAlgoDefaultDir : mscclAlgoDefaultDir;
mscclAlgoDir = mscclAlgoDirStr.c_str();
// Get share Directory Paths
mscclAlgoShareDirStr = selfLibPath.substr(0, selfLibPath.find("lib"));
mscclAlgoShareDirStr = selfLibPath.substr(0, selfLibPath.rfind("lib"));
mscclAlgoShareDirStr += (mscclUnitTestMode && mscclUnitTestMode()) ? mscclUnitTestAlgoShareDirPath : mscclAlgoShareDirPath;
mscclAlgoShareDir = mscclAlgoShareDirStr.c_str();
}