Skip to content

Commit

Permalink
Fix an issue with the last commit when data checking is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
AddyLaddy committed Sep 7, 2022
1 parent a0a1491 commit afa4c56
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/common.cu
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ testResult_t BenchTime(struct threadArgs* args, ncclDataType_t type, ncclRedOp_t
int64_t wrongElts = 0;
static __thread int rep = 0;
rep++;
if (args->reportErrors) {
if (datacheck) {
// Initialize sendbuffs, recvbuffs and expected
TESTCHECK(args->collTest->initData(args, type, op, root, rep, in_place));

Expand Down Expand Up @@ -952,7 +952,7 @@ testResult_t run() {
threads[t].args.bw=bw+t;
threads[t].args.bw_count=bw_count+t;

threads[t].args.reportErrors = 1;
threads[t].args.reportErrors = datacheck;

threads[t].func = parallel_init ? threadInit : threadRunTests;
if (t)
Expand Down

0 comments on commit afa4c56

Please sign in to comment.