From fbd45939fbfd99dbad95c170835c770454a46cc0 Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Wed, 18 Dec 2024 12:22:02 +0100 Subject: [PATCH] Add missing include for hardware_destructive_interference_size std::hardware_destructive_interference_size is defined in , and after https://github.com/llvm/llvm-project/pull/119964 libc++ is less likely to implicily provide it through other headers. --- Eigen/src/Core/util/ConfigureVectorization.h | 1 + 1 file changed, 1 insertion(+) diff --git a/Eigen/src/Core/util/ConfigureVectorization.h b/Eigen/src/Core/util/ConfigureVectorization.h index 47ddd4f8a..223d64f7e 100644 --- a/Eigen/src/Core/util/ConfigureVectorization.h +++ b/Eigen/src/Core/util/ConfigureVectorization.h @@ -41,6 +41,7 @@ // Align to the boundary that avoids false sharing. // https://en.cppreference.com/w/cpp/thread/hardware_destructive_interference_size #ifdef __cpp_lib_hardware_interference_size +#include #define EIGEN_ALIGN_TO_AVOID_FALSE_SHARING EIGEN_ALIGN_TO_BOUNDARY(std::hardware_destructive_interference_size) #else // Overalign for the cache line size of 128 bytes (Apple M1) -- GitLab