Change network plugin name to librccl-net.so (#266)

[ROCm/rccl commit: d871fceb54]
This commit is contained in:
Wenkai Du
2020-09-18 13:23:30 -07:00
committed by GitHub
parent 2e5e4a6bde
commit 37f7eec6b7
+2 -2
View File
@@ -70,13 +70,13 @@ ncclResult_t initCollNet(ncclCollNet_t* collnet) {
} }
ncclResult_t initNetPlugin(ncclNet_t** net, ncclCollNet_t** collnet) { ncclResult_t initNetPlugin(ncclNet_t** net, ncclCollNet_t** collnet) {
void* netPluginLib = dlopen("libnccl-net.so", RTLD_NOW | RTLD_LOCAL); void* netPluginLib = dlopen("librccl-net.so", RTLD_NOW | RTLD_LOCAL);
if (netPluginLib == NULL) { if (netPluginLib == NULL) {
// dlopen does not guarantee to set errno, but dlerror only gives us a // dlopen does not guarantee to set errno, but dlerror only gives us a
// string, so checking errno doesn't hurt to try to provide a better // string, so checking errno doesn't hurt to try to provide a better
// error message // error message
if (errno == ENOENT) { if (errno == ENOENT) {
INFO(NCCL_INIT|NCCL_NET, "NET/Plugin : No plugin found (libnccl-net.so), using internal implementation"); INFO(NCCL_INIT|NCCL_NET, "NET/Plugin : No plugin found (librccl-net.so), using internal implementation");
} else { } else {
INFO(NCCL_INIT|NCCL_NET, "NET/Plugin : Plugin load returned %d : %s.", errno, dlerror()); INFO(NCCL_INIT|NCCL_NET, "NET/Plugin : Plugin load returned %d : %s.", errno, dlerror());
} }