Skip to content
Snippets Groups Projects
Commit cf34dca0 authored by Jakub Klinkovský's avatar Jakub Klinkovský
Browse files

Fixed VERY confusing comment and variable name in Devices::Cuda

parent 5dfb78d7
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment