Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
cuda_lab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Gaurav Kukreja
cuda_lab
Commits
9265d9b8
Commit
9265d9b8
authored
Mar 05, 2014
by
Gaurav Kukreja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified block size
Signed-off-by:
Gaurav Kukreja
<
gaurav@gauravk.in
>
parent
6a9fd100
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
main.cu
gaurav/1_Assign/ex6/main.cu
+2
-2
No files found.
gaurav/1_Assign/ex6/main.cu
View file @
9265d9b8
...
...
@@ -29,7 +29,7 @@
using namespace std;
// uncomment to use the camera
#define CAMERA
//
#define CAMERA
#define USING_GPU
...
...
@@ -274,7 +274,7 @@ int main(int argc, char **argv)
size_t count = w * h * nc;
// 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);
// Allocating memory on the device
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment