Commit 9265d9b8 authored by Gaurav Kukreja's avatar Gaurav Kukreja

Modified block size

Signed-off-by: Gaurav Kukreja's avatarGaurav Kukreja <gaurav@gauravk.in>
parent 6a9fd100
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
using namespace std; using namespace std;
// uncomment to use the camera // uncomment to use the camera
#define CAMERA //#define CAMERA
#define USING_GPU #define USING_GPU
...@@ -274,7 +274,7 @@ int main(int argc, char **argv) ...@@ -274,7 +274,7 @@ int main(int argc, char **argv)
size_t count = w * h * nc; size_t count = w * h * nc;
// Thread Dimensions // Thread Dimensions
dim3 block = dim3(16, 4, nc); dim3 block = dim3(16, 8, nc);
dim3 grid = dim3((w + block.x - 1) / block.x, (h + block.y - 1) / block.y, 1); dim3 grid = dim3((w + block.x - 1) / block.x, (h + block.y - 1) / block.y, 1);
// Allocating memory on the device // Allocating memory on the device
......
Markdown is supported
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