Merge remote-tracking branch 'nccl/master' into 2.8.3

Dieser Commit ist enthalten in:
Wenkai Du
2021-02-15 19:29:45 +00:00
Commit c985358e11
23 geänderte Dateien mit 82 neuen und 52 gelöschten Zeilen
+2 -2
Datei anzeigen
@@ -69,10 +69,10 @@ ncclResult_t getHostName(char* hostname, int maxlen, const char delim) {
}
uint64_t getHash(const char* string, int n) {
// Based on DJB2, result = result * 33 + char
// Based on DJB2a, result = result * 33 ^ char
uint64_t result = 5381;
for (int c = 0; c < n; c++) {
result = ((result << 5) + result) + string[c];
result = ((result << 5) + result) ^ string[c];
}
return result;
}