Skip to content

Commit 01b6895

Browse files
authored
Merge pull request #13257 from JiabinYang/fix_nccl_error_info
add error info for nccl not found
2 parents ad4d965 + e322fc4 commit 01b6895

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

paddle/fluid/platform/dynload/dynamic_loader.cc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ static inline void* GetDsoHandleFromSearchPath(const std::string& search_root,
121121
if (nullptr == dso_handle) {
122122
LOG(WARNING) << "Failed to find dynamic library: " << dlPath << " ("
123123
<< dlerror() << ")";
124+
if (dlPath.find("nccl") != std::string::npos) {
125+
std::cout
126+
<< "You may need to install 'nccl2' from NVIDIA official website: "
127+
<< "https://developer.nvidia.com/nccl/nccl-download"
128+
<< "before install PaddlePaddle" << std::endl;
129+
}
124130
dlPath = dso_name;
125131
dso_handle = GetDsoHandleFromDefaultPath(dlPath, dynload_flags);
126132
}

0 commit comments

Comments
 (0)