Change CUDA version check for cudaSync from 10000 to 10010 (#1704)

This commit is contained in:
Facundo Galán 2019-03-27 21:41:46 -03:00 committed by Davis E. King
parent ae406bf4c1
commit 64ad6b2591

View File

@ -83,7 +83,7 @@ namespace dlib
{
#if !defined CUDA_VERSION
#error CUDA_VERSION not defined
#elif CUDA_VERSION >= 9020 && CUDA_VERSION <= 10000
#elif CUDA_VERSION >= 9020 && CUDA_VERSION <= 10010
// 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)