From 315ba822cfbefb9788c93c52c5e12ef1e3ec408f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Sun, 4 Dec 2016 21:43:34 +0100 Subject: [PATCH] Fixed bug in parallel multireduction --- src/TNL/Containers/Algorithms/Multireduction_impl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TNL/Containers/Algorithms/Multireduction_impl.h b/src/TNL/Containers/Algorithms/Multireduction_impl.h index bdc49e5bd5..a92d0bd641 100644 --- a/src/TNL/Containers/Algorithms/Multireduction_impl.h +++ b/src/TNL/Containers/Algorithms/Multireduction_impl.h @@ -75,7 +75,7 @@ reduce( Operation& operation, return false; if( deviceInput2 ) { RealType hostArray2[ Multireduction_minGpuDataSize ]; - if( ! ArrayOperations< Devices::Host, Devices::Cuda >::copyMemory< RealType, RealType, IndexType >( hostArray2, deviceInput2, n * size ) ) + if( ! ArrayOperations< Devices::Host, Devices::Cuda >::copyMemory< RealType, RealType, IndexType >( hostArray2, deviceInput2, size ) ) return false; return Multireduction< Devices::Host >::reduce( operation, n, size, hostArray1, ldInput1, hostArray2, hostResult ); } -- GitLab