[fpc-pascal] number of cpu cores
Florian Klaempfl
florian at freepascal.org
Sun Nov 30 18:15:45 CET 2008
Mattias Gaertner schrieb:
> I need a default value of the number of maximum threads.
> Is there already some RTL function that can be used for that?
>
> For example if the program runs on a 2 x quad core it would be nice to
> get 8.
> Hyperthreading multipliers should be applied.
If we implement something like this, I propose we do it properly. There
are different numbers important:
- numa nodes
- physical cpus
- cache sharing cores
- logical/execution unit sharing cores
Which one are considered important?
More information about the fpc-pascal
mailing list