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

Change array size

parent ecf00ad2
Branches master
No related merge requests found
......@@ -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;
......
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