[fpc-pascal] detect CPU cores

Dmitry Boyarintsev skalogryz.lists at gmail.com
Fri Sep 12 16:28:55 CEST 2014


If you're talking bout x88_64, i386 platforms, you should be able to do it
using CPUID instruction

http://en.wikipedia.org/wiki/CPUID

thanks,
Dmitry

On Fri, Sep 12, 2014 at 10:07 AM, Xiangrong Fang <xrfang at gmail.com> wrote:

> Hi All,
>
> Is there a platform independent (specifically Windows and Linux) way to
> detect cores and hyper-threads of the CPU? I am writing a calculation
> intensive app and would like to fully utilize SMP capability of the CPU.
>
> Thanks!
> Xiangrong
>
>
> _______________________________________________
> fpc-pascal maillist  -  fpc-pascal at lists.freepascal.org
> http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20140912/c5556642/attachment.html>


More information about the fpc-pascal mailing list