From 847b7c065a42b0b6511fed1d77edf7e2c9849d67 Mon Sep 17 00:00:00 2001 From: Jose H <13516027@std.stei.itb.ac.id> Date: Thu, 11 Apr 2019 22:15:48 +0700 Subject: [PATCH] Change array size --- src/parallel_radix.cu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/parallel_radix.cu b/src/parallel_radix.cu index 55f734e..a5cf324 100644 --- a/src/parallel_radix.cu +++ b/src/parallel_radix.cu @@ -7,7 +7,7 @@ #include "device_launch_parameters.h" #define MAX_BLOCK_SIZE 1024 -#define ARRAY_SIZE 200000 +#define ARRAY_SIZE 100000 #define BASE 10 #define RNG_SEED 13516027 @@ -68,7 +68,7 @@ int main(int argc, char *argv[]) cudaMemcpy(harr, darr, count * sizeof(int), cudaMemcpyDeviceToHost); //find max if(count > MAX_BLOCK_SIZE){ - grid = count / (MAX_BLOCK_SIZE); + grid = count / (MAX_BLOCK_SIZE) + 1; } else{ grid = 1; -- GitLab