Init data for throughput iterations to avoid all zero data

[ROCm/rccl-tests commit: 13d0ddd12e]
このコミットが含まれているのは:
Wenkai Du committed 2019-09-27 09:12:00 -07:00
1 親 b74c00f548
コミット 55749e6e97
1ファイル変更
+3
+3
ファイルの表示
@@ -851,6 +851,9 @@ testResult_t run() {
HIPCHECK(hipSetDevice(localRank*nThreads*nGpus+i));
AllocateBuffs(sendbuffs+i, sendBytes, recvbuffs+i, recvBytes, expected+i, (size_t)maxBytes, nProcs*nThreads*nGpus);
HIPCHECK(hipStreamCreateWithFlags(streams+i, hipStreamNonBlocking));
// initialize data buffer to avoid all zero data
TESTCHECK(InitData(sendbuffs[i], maxBytes, ncclUint8, 0, i));
HIPCHECK(hipDeviceSynchronize());
}
//if parallel init is not selected, use main thread to initialize NCCL