Made TensorDeviceCuda.h compile on windows

This commit is contained in:
Benoit Steiner 2016-11-17 16:15:27 -08:00
parent a1d5c503fa
commit a6a3fd0703

View File

@ -88,7 +88,11 @@ static void initializeDeviceProp() {
#if __cplusplus >= 201103L
std::atomic_thread_fence(std::memory_order_acquire);
#endif
#if EIGEN_OS_WIN || EIGEN_OS_WIN64
Sleep(1000);
#else
sleep(1);
#endif
}
}
}