mirror of https://github.com/davisking/dlib.git
Even the newest CUDA runtime has a buggy cudaStreamSynchronize.
This commit is contained in:
parent
3d5a3d7b9a
commit
5557577c95
|
@ -83,7 +83,10 @@ namespace dlib
|
|||
{
|
||||
#if !defined CUDA_VERSION
|
||||
#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
|
||||
// reason makes training freeze in some cases.
|
||||
// (see https://github.com/davisking/dlib/issues/1513)
|
||||
|
|
Loading…
Reference in New Issue