Remove error logging from a normal path

When initNet fails, we should not print the backtrace as it is
supposed to be normal operation (falling back to sockets)


[ROCm/rccl commit: 57368189e1]
Tá an tiomantas seo le fáil i:
Sylvain Jeaugey tiomanta 2018-12-04 14:47:41 -08:00
1 tuismitheoir 49819bcb7c
tiomantas e2f73fea64
1 comhad athraithe
+3 -2
+3 -2
Féach ar an gComhad
@@ -72,10 +72,11 @@ int ncclCudaFullCompCap() {
return ccMajor*10+ccMinor;
}
// Returns ncclInternalError if anything fails, causing that network to be ignored.
ncclResult_t initNet(ncclNet_t* net) {
int ndev;
NCCLCHECK(net->init(ncclDebugLog));
NCCLCHECK(net->devices(&ndev));
if (net->init(ncclDebugLog) != ncclSuccess) return ncclInternalError;
if (net->devices(&ndev) != ncclSuccess) return ncclInternalError;
if (ndev <= 0) {
INFO(NCCL_INIT|NCCL_NET, "Net/%s: call to devices() returned 0 devices.", net->name);
return ncclSystemError;