17 Aug
2015
17 Aug
'15
4:56 p.m.
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.
Doesn't Bosot.Thread has that already ?
- Current CPU core capabilities (vendor string, instruction set extensions, cache properties, etc.). Probably, this would need to support heterogenous systems as well.
We currently have a wrapper for CPUID(EX) like calls so it may just fit there.
- System RAM size. - OS version string.
Those I dunno except it's non-trivial. Well, as far as creep goes, we can have a basic system put together adn expand it later.