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

Этот коммит содержится в:
Wenkai Du committed 2021-02-15 18:44:47 -05:00
Коммит c985358e11
23 files changed
+82 -52

No files matched your search

+2 -2
Просмотреть файл
@@ -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;
}