1 Oct
2020
1 Oct
'20
1:44 a.m.
On Thu, 2020-10-01 at 12:39 +1300, Gavin Lambert via Boost wrote:
C++17 already provides these [1]; this is determined at compile time based on typical values for the platform rather than the precise values for a particular machine, but since the most common usage for this information in my experience is to decide strides in data structures, that's usually when you need to know it.
[1]: https://en.cppreference.com/w/cpp/thread/hardware_destructive_interference_s...
Unfortunately, there is currently limited compiler support[1] for those. Jeff, I will take a look at hwloc. I had not seen that before. [1]: https://en.cppreference.com/w/cpp/compiler_support P0154R1 Matt