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
5557577c
Commit
5557577c
authored
Jan 05, 2020
by
Davis King
Browse files
Even the newest CUDA runtime has a buggy cudaStreamSynchronize.
parent
3d5a3d7b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
dlib/cuda/gpu_data.cpp
dlib/cuda/gpu_data.cpp
+4
-1
No files found.
dlib/cuda/gpu_data.cpp
View file @
5557577c
...
@@ -83,7 +83,10 @@ namespace dlib
...
@@ -83,7 +83,10 @@ namespace dlib
{
{
#if !defined CUDA_VERSION
#if !defined CUDA_VERSION
#error CUDA_VERSION not defined
#error CUDA_VERSION not defined
#elif CUDA_VERSION >= 9020 && CUDA_VERSION <= 10010
#elif CUDA_VERSION >= 9020 && CUDA_VERSION <= 11000
// We will stop using this alternative version with cuda V11, hopefully the bug in
// cudaStreamSynchronize is fixed by then.
//
// This should be pretty much the same as cudaStreamSynchronize, which for some
// This should be pretty much the same as cudaStreamSynchronize, which for some
// reason makes training freeze in some cases.
// reason makes training freeze in some cases.
// (see https://github.com/davisking/dlib/issues/1513)
// (see https://github.com/davisking/dlib/issues/1513)
...
...
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