Adding git hash info to version output line (#572)

This commit is contained in:
gilbertlee-amd
2022-06-28 16:42:51 -06:00
کامیت شده توسط GitHub
والد d5bea2cfaa
کامیت a89a9966aa
4فایلهای تغییر یافته به همراه63 افزوده شده و 3 حذف شده
+12
مشاهده پرونده
@@ -0,0 +1,12 @@
/*************************************************************************
* Copyright (c) 2022 Advanced Micro Devices, Inc. All rights reserved.
*
* See LICENSE.txt for license information
************************************************************************/
#ifndef RCCL_GIT_VERSION_H_
#define RCCL_GIT_VERSION_H_
extern const char *rcclGitHash;
#endif
+3 -2
مشاهده پرونده
@@ -33,6 +33,7 @@
#include "graph/topo.h"
// [RCCL]
#include "git_version.h"
//#include "clique/CliqueManager.h"
//#include <hsa/hsa_ext_amd.h>
// [/RCCL]
@@ -525,10 +526,10 @@ static ncclResult_t devCommSetup(ncclComm_t comm) {
static void showVersion() {
static int shown = 0;
if (shown == 0 && ncclDebugLevel >= NCCL_LOG_VERSION) {
printf("%s\n", VERSION_STRING);
printf("%s %s\n", VERSION_STRING, rcclGitHash);
fflush(stdout);
if (ncclDebugFile != stdout)
INFO(NCCL_ALL,"%s", VERSION_STRING); // Also log NCCL version in one of the files
INFO(NCCL_ALL,"%s %s", VERSION_STRING, rcclGitHash); // Also log NCCL version in one of the files
shown = 1;
}
}