diff --git a/projects/rccl-tests/src/common.cu b/projects/rccl-tests/src/common.cu index 19129d66ec..ff4e1fd857 100644 --- a/projects/rccl-tests/src/common.cu +++ b/projects/rccl-tests/src/common.cu @@ -559,7 +559,7 @@ testResult_t threadLaunch(struct testThread* thread) { testResult_t AllocateBuffs(void **sendbuff, size_t sendBytes, void **recvbuff, size_t recvBytes, void **expected, size_t nbytes, int nranks) { CUDACHECK(cudaMalloc(sendbuff, nbytes)); CUDACHECK(cudaMalloc(recvbuff, nbytes)); - CUDACHECK(cudaMalloc(expected, recvBytes)); + if (datacheck) CUDACHECK(cudaMalloc(expected, recvBytes)); return testSuccess; } @@ -764,7 +764,7 @@ testResult_t run() { for (int i=0; i