From 1dbc7581ece8d8519e3dac4be1587b00db5b5584 Mon Sep 17 00:00:00 2001 From: Rasmus Munk Larsen Date: Wed, 14 Aug 2024 17:44:14 +0000 Subject: [PATCH] Include for std::this_thread::yield(). --- Eigen/Core | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Eigen/Core b/Eigen/Core index e452e73ae..29dda3932 100644 --- a/Eigen/Core +++ b/Eigen/Core @@ -97,6 +97,11 @@ // for std::is_nothrow_move_assignable #include +// for std::this_thread::yield(). +#if !defined(EIGEN_USE_BLAS) && (defined(EIGEN_HAS_OPENMP) || defined(EIGEN_GEMM_THREADPOOL)) +#include +#endif + // for outputting debug info #ifdef EIGEN_DEBUG_ASSIGN #include @@ -117,8 +122,8 @@ #include #include #include -#include #include +#include #ifndef EIGEN_SYCL_LOCAL_THREAD_DIM0 #define EIGEN_SYCL_LOCAL_THREAD_DIM0 16 #endif