Skip to content

Commit dc445aa

Browse files
author
lijunli
committed
net_ib: return ncclSuccess if read roceTypePath failed and errno is EINVAL. #890
1 parent 178b6b7 commit dc445aa

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/transport/net_ib.cc

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ static ncclResult_t ncclIbRoceGetVersionNum(const char* deviceName, int portNum,
248248
close(fd);
249249

250250
if (ret == -1) {
251+
WARN("NET/IB: read failed: %s, roceTypePath: %s", strerror(errno), roceTypePath);
252+
if (errno == EINVAL) {
253+
return ncclSuccess;
254+
}
251255
return ncclSystemError;
252256
}
253257

0 commit comments

Comments
 (0)