Improve robustness of PCI detection

Fallback to default values when class/speed is unknown.


[ROCm/rccl commit: 23a9fbb788]
Tento commit je obsažen v:
Sylvain Jeaugey
2020-04-16 14:27:50 -07:00
rodič acd868dfcb
revize 5df2502deb
2 změnil soubory, kde provedl 5 přidání a 6 odebrání
+3 -2
Zobrazit soubor
@@ -218,8 +218,9 @@ static ncclResult_t kvConvertToInt(const char* str, int* value, struct kvDict* d
}
d++;
}
WARN("KV Convert to int : could not find value of '%s' in dictionary", str);
return ncclInternalError;
INFO(NCCL_GRAPH, "KV Convert to int : could not find value of '%s' in dictionary, falling back to %d", str, d->value);
*value = d->value;
return ncclSuccess;
}
static ncclResult_t kvConvertToStr(int value, const char** str, struct kvDict* dict) {
struct kvDict* d = dict;