diff --git a/src/common.cu b/src/common.cu index 19129d6..ff4e1fd 100644 --- a/src/common.cu +++ b/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