aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h
diff options
context:
space:
mode:
authorGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-12-02 11:04:04 -0800
committerGravatar Rasmus Munk Larsen <rmlarsen@google.com>2020-12-02 11:04:04 -0800
commit71c85df4c1ce4efa41bb4adc8e9cb224c3ca9a2d (patch)
treec0f768dccd1dbca1fe17621bf8638c9102b8f170 /unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h
parent70fbcf82ed0a95b27ee68e20199a4e8e1e913268 (diff)
Clean up the Tensor header and get rid of the EIGEN_SLEEP macro.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h
index 7f3394438..9422dcd7a 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorDeviceGpu.h
@@ -83,7 +83,7 @@ static void initializeDeviceProp() {
// Wait for the other thread to inititialize the properties.
while (!m_devicePropInitialized) {
std::atomic_thread_fence(std::memory_order_acquire);
- EIGEN_SLEEP(1000);
+ std::this_thread::sleep_for(std::chrono::milliseconds(1000));
}
}
}