Skip to content
Snippets Groups Projects
Commit ecf00ad2 authored by Andreas Halim's avatar Andreas Halim
Browse files

add and fix some feature

parent cbb1542c
No related merge requests found
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#include "device_launch_parameters.h" #include "device_launch_parameters.h"
#define MAX_BLOCK_SIZE 1024 #define MAX_BLOCK_SIZE 1024
#define ARRAY_SIZE 100000 #define ARRAY_SIZE 200000
#define BASE 10 #define BASE 10
#define RNG_SEED 13516027 #define RNG_SEED 13516027
...@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) ...@@ -68,7 +68,7 @@ int main(int argc, char *argv[])
cudaMemcpy(harr, darr, count * sizeof(int), cudaMemcpyDeviceToHost); cudaMemcpy(harr, darr, count * sizeof(int), cudaMemcpyDeviceToHost);
//find max //find max
if(count > MAX_BLOCK_SIZE){ if(count > MAX_BLOCK_SIZE){
grid = count / (MAX_BLOCK_SIZE) + 1; grid = count / (MAX_BLOCK_SIZE);
} }
else{ else{
grid = 1; grid = 1;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment