From ec9eef15c744e4801f0c7a0bc44e197e74b65f20 Mon Sep 17 00:00:00 2001 From: Randolph Settgast Date: Thu, 23 May 2024 12:07:04 -0700 Subject: [PATCH] debugging gpu test failures on ubi --- src/common/pmpl.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/pmpl.hpp b/src/common/pmpl.hpp index 49f490a..bed069b 100644 --- a/src/common/pmpl.hpp +++ b/src/common/pmpl.hpp @@ -137,8 +137,9 @@ void genericKernelWrapper( int const N, DATA_TYPE * & hostData, LAMBDA && func ) genericKernel << < 1, 1 >> > ( std::forward< LAMBDA >( func ), deviceData ); deviceDeviceSynchronize(); deviceMemCpy( hostData, deviceData, N * sizeof(DATA_TYPE), cudaMemcpyDeviceToHost ); + deviceFree( deviceData ); #else - hostData = new DATA_TYPE[N]; + SHIVA_UNUSED_VAR( N ); genericKernel( std::forward< LAMBDA >( func ), hostData ); #endif }