I recommend https://www.open-mpi.org/projects/hwloc/ as a widely portable library for querying L1D size and many other architectural properties. Clearly, this isn't in the Boost family, nor is it even C++, but it seems imprudent to try reimplement hwloc in Boost. Jeff On Wed, Sep 30, 2020 at 2:30 PM Matt Borland via Boost < boost@lists.boost.org> wrote:
A recurring discussion in Boost.Math has been needing a cross-platform way to query the L1D cache size of a machine. I have most of a solution in a [personal repo](https://github.com/mborland/cache). It did not make sense to us to have this in Boost.Math because it would be useful outside of that scope, but we did not know where it should go. Is there an existing library where this would fit? If necessary I can roll it into a library submission that exposes the functionality of CPUID.
Matt
_______________________________________________ Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost
-- Jeff Hammond jeff.science@gmail.com http://jeffhammond.github.io/