Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
D
dlib
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
钟尚武
dlib
Commits
176e329d
Commit
176e329d
authored
Feb 15, 2018
by
Davis King
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Upgrade to the newer shuffle command to avoid warnings about deprecation from CUDA 9.0.
parent
caea9a2c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
cuda_utils.h
dlib/dnn/cuda_utils.h
+4
-0
No files found.
dlib/dnn/cuda_utils.h
View file @
176e329d
...
...
@@ -108,7 +108,11 @@ namespace dlib
__inline__
__device__
float
warp_reduce_sum
(
float
val
)
{
for
(
int
offset
=
warpSize
/
2
;
offset
>
0
;
offset
/=
2
)
#if CUDART_VERSION >= 9000
val
+=
__shfl_down_sync
(
0xFFFFFFFF
,
val
,
offset
);
#else
val
+=
__shfl_down
(
val
,
offset
);
#endif
return
val
;
}
...
...
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