From afa4c56b6aeae3d198dfc30d9d8f26cc5ee75dba Mon Sep 17 00:00:00 2001 From: David Addison Date: Wed, 7 Sep 2022 11:23:49 -0700 Subject: [PATCH] Fix an issue with the last commit when data checking is disabled --- src/common.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common.cu b/src/common.cu index 0bc047c4f1..8fe9258164 100644 --- a/src/common.cu +++ b/src/common.cu @@ -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)); @@ -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)