Boost logo

Boost :

Subject: Re: [boost] cache size runtime detection
From: Paul A. Bristow (pbristow_at_[hidden])
Date: 2015-08-18 04:49:44


> -----Original Message-----
> From: Boost [mailto:boost-bounces_at_[hidden]] On Behalf Of Andrey Semashev
> Sent: 17 August 2015 18:09
> To: boost_at_[hidden]
> Subject: Re: [boost] cache size runtime detection
>
> On 17.08.2015 19:56, Joel FALCOU wrote:
> >>> It should definitely be a dedicated library. What I was thinking of
> >>> for quite some time is a bit broader. My idea is a system
> >>> capabilities library (Boost.SystemCaps) which would offer a generic
> >>> interface for querying the current system properties such as:
> >>>
> >>> - Number of CPU cores/threads.

> > Well, as far as creep goes, we can have a basic system put together
> > adn expand it later.
>
> Yes, that's my thought as well. Such a library can never be complete. :)

Not all systems will have all meaningful values for all features.

Can we establish a good 'NotANumber' right at the start

(preferably better than the -1 used in the C-ish

http://pubs.opengroup.org/onlinepubs/009695399/functions/sysconf.html)?

Paul

---
Paul A. Bristow
Prizet Farmhouse
Kendal UK LA8 8AB
+44 (0) 1539 561830

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk