Add missing #include <new>

This commit is contained in:
Jordan Rupprecht 2024-12-19 11:06:08 +00:00 committed by Antonio Sánchez
parent c01ff45312
commit a32db43966

View File

@ -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 <new>
#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)