|
Boost : |
From: Matt Borland (matt_at_[hidden])
Date: 2020-10-01 01:44:29
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_size
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
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk