adding git version to rccl-test (#66)

* adding git version to rccl-test

---------

Co-authored-by: mberenjk <mberenjk@banff-cyxtera-s74-2.ctr.dcgpu>
This commit is contained in:
mberenjk
2024-03-20 10:04:12 -05:00
committed by GitHub
parent e447c17382
commit a31679775c
4 changed files with 85 additions and 1 deletions
+2
View File
@@ -21,6 +21,7 @@
//#define DEBUG_PRINT
#include "verifiable.h"
#include "git_version.h"
int test_ncclVersion = 0; // init'd with ncclGetVersion()
@@ -754,6 +755,7 @@ testResult_t run(); // Main function
int main(int argc, char* argv[]) {
// Make sure everyline is flushed so that we see the progress of the test
setlinebuf(stdout);
printf("rccl-tests: Version %s\n", rcclTestsGitHash);
#if NCCL_VERSION_CODE >= NCCL_VERSION(2,4,0)
ncclGetVersion(&test_ncclVersion);