aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-17 16:15:27 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2016-11-17 16:15:27 -0800
commita6a3fd070305b2b4e6f97e10868cb227f9028117 (patch)
tree41fdf1471e2e690e9b25df3c37c47deebe273fff /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h
parenta1d5c503fad23453d7447ef09bc7d1381d4667cf (diff)
Made TensorDeviceCuda.h compile on windows
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h
index 4f5767bc7..ec732f17d 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceCuda.h
@@ -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
}
}
}