Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/marian-nmt/nccl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2020-11-20 01:40:19 +0300
committerMarcin Junczys-Dowmunt <marcinjd@microsoft.com>2020-11-20 01:40:19 +0300
commit5dcf7751494f9d04057bfc6b4a2b64611bc12253 (patch)
treeda539cb823c9e11e4fa8e7e6de88dd4a662c7128 /src/misc/utils.cc
parent7bed5ac058c3ca3c4617d133f3240b6981f95428 (diff)
parent920dbe5b359fe5817b8ba874476ca4ba2dc5f1ef (diff)
Merge remote-tracking branch 'nccl/master' into HEADHEADmaster
Diffstat (limited to 'src/misc/utils.cc')
-rw-r--r--src/misc/utils.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/misc/utils.cc b/src/misc/utils.cc
index 5158529..b231eb1 100644
--- a/src/misc/utils.cc
+++ b/src/misc/utils.cc
@@ -1,5 +1,5 @@
/*************************************************************************
- * Copyright (c) 2016-2019, NVIDIA CORPORATION. All rights reserved.
+ * Copyright (c) 2016-2020, NVIDIA CORPORATION. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
@@ -24,7 +24,7 @@ ncclResult_t int64ToBusId(int64_t id, char* busId) {
return ncclSuccess;
}
-ncclResult_t busIdToInt64(char* busId, int64_t* id) {
+ncclResult_t busIdToInt64(const char* busId, int64_t* id) {
const int size = strlen(busId);
char* hexStr;
NCCLCHECK(ncclCalloc(&hexStr, size));
@@ -93,6 +93,7 @@ uint64_t getHostHash(void) {
int offset = strlen(hostHash);
if ((hostId = getenv("NCCL_HOSTID")) != NULL) {
+ INFO(NCCL_ENV, "NCCL_HOSTID set by environment to %s", hostId);
strncpy(hostHash, hostId, sizeof(hostHash));
} else {
FILE *file = fopen(HOSTID_FILE, "r");