Minor fix for some msccl installations (#862)

Этот коммит содержится в:
gilbertlee-amd
2023-08-23 13:48:58 -06:00
коммит произвёл GitHub
родитель 6ee758382e
Коммит 5bcd3768cc
+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();
}