From c62bde3272fb94e47c94b21e53187fd77e664b49 Mon Sep 17 00:00:00 2001 From: David Addison Date: Wed, 20 Jan 2021 17:08:40 -0800 Subject: [PATCH] Do not allocate memory for expected buffer if checking disabled This allows the tests to be run with larger buffers [ROCm/rccl-tests commit: 7677f3f6081cfafb89947b675cde565c63a3f98c] --- projects/rccl-tests/src/common.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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