Commit 5557577c authored by Davis King's avatar Davis King
Browse files

Even the newest CUDA runtime has a buggy cudaStreamSynchronize.

parent 3d5a3d7b
...@@ -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)
......
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