Update check for std::hardware_destructive_interference_size

This commit is contained in:
Antonio Sánchez 2025-02-05 19:41:07 +00:00
parent c079ee5e44
commit 4c2611d27c

View File

@ -40,7 +40,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
#if defined(__cpp_lib_hardware_interference_size) && __cpp_lib_hardware_interference_size >= 201603
#include <new>
#define EIGEN_ALIGN_TO_AVOID_FALSE_SHARING EIGEN_ALIGN_TO_BOUNDARY(std::hardware_destructive_interference_size)
#else