From cf34dca066ff8368c3d591e7bf74145a4ea025f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Klinkovsk=C3=BD?= <klinkjak@fjfi.cvut.cz> Date: Tue, 16 Jul 2019 18:34:27 +0200 Subject: [PATCH] Fixed VERY confusing comment and variable name in Devices::Cuda --- src/TNL/Devices/Cuda.h | 4 ++-- src/TNL/Devices/Cuda_impl.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/TNL/Devices/Cuda.h b/src/TNL/Devices/Cuda.h index 7831014155..80108bf530 100644 --- a/src/TNL/Devices/Cuda.h +++ b/src/TNL/Devices/Cuda.h @@ -75,10 +75,10 @@ class Cuda /**** * This functions helps to count number of CUDA grids depending on the - * number of the CUDA blocks and maximum grid size. + * number of the CUDA threads and maximum grid size. * It is obsolete and it will be replaced by setupThreads. */ - static inline int getNumberOfGrids( const int blocks, + static inline int getNumberOfGrids( const int threads, const int gridSize = getMaxGridSize() ); #ifdef HAVE_CUDA diff --git a/src/TNL/Devices/Cuda_impl.h b/src/TNL/Devices/Cuda_impl.h index 234f45b720..a40375c39c 100644 --- a/src/TNL/Devices/Cuda_impl.h +++ b/src/TNL/Devices/Cuda_impl.h @@ -111,10 +111,10 @@ inline int Cuda::getNumberOfBlocks( const int threads, return roundUpDivision( threads, blockSize ); } -inline int Cuda::getNumberOfGrids( const int blocks, +inline int Cuda::getNumberOfGrids( const int threads, const int gridSize ) { - return roundUpDivision( blocks, gridSize ); + return roundUpDivision( threads, gridSize ); } #ifdef HAVE_CUDA -- GitLab