Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
776678a3
Commit
776678a3
authored
Sep 29, 2016
by
Davis King
Browse files
Fixed spelling error in comment
parent
2a0b4619
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
dlib/dnn/cuda_utils.h
dlib/dnn/cuda_utils.h
+1
-1
No files found.
dlib/dnn/cuda_utils.h
View file @
776678a3
...
@@ -261,7 +261,7 @@ namespace dlib
...
@@ -261,7 +261,7 @@ namespace dlib
CUDA's y thread index (e.g. threadIdx.y) instead of the x index.
CUDA's y thread index (e.g. threadIdx.y) instead of the x index.
Therefore, if you launch a cuda kernel with a statement like:
Therefore, if you launch a cuda kernel with a statement like:
dim3 blocks(10,1);
dim3 blocks(10,1);
dim3 threads(32,32); // You need to have x any not equal to 1 to get parallelism over both loops.
dim3 threads(32,32); // You need to have x an
d
y not equal to 1 to get parallelism over both loops.
add_arrays<<<blocks,threads>>>(a,b,out,nr,nc);
add_arrays<<<blocks,threads>>>(a,b,out,nr,nc);
You can perform a nested 2D parallel for loop rather than doing just a
You can perform a nested 2D parallel for loop rather than doing just a
1D for loop.
1D for loop.
...
...
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