Skip to content
Snippets Groups Projects
Commit a86ed9d8 authored by Jose Hosea's avatar Jose Hosea
Browse files

Change var

parent f08399f0
No related branches found
No related tags found
No related merge requests found
......@@ -23,7 +23,7 @@ __global__ void get_max(unsigned int * input, int n)
{
const int tid = blockDim.x * blockIdx.x + threadIdx.x;
auto step_size = 1;
int number_of_threads = blockDim.x / 2;
int number_of_threads = n / 2;
while (number_of_threads > 0)
{
if (tid < number_of_threads) // still alive?
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment