From 7677f3f6081cfafb89947b675cde565c63a3f98c 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 --- src/common.cu | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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