[cmake-developers] Fixing ProcessorCount.cmake
Rolf Eike Beer
eike at sf-mail.de
Mon Nov 8 15:30:22 EST 2010
Am Montag, 8. November 2010 schrieb Bill Hoffman:
> On 11/8/2010 1:55 PM, Rolf Eike Beer wrote:
> > Am Montag, 8. November 2010 schrieb David Cole:
> >> Hi Rolf,
> >>
> >> Can you update to a CMake based on 'next' and try the commit I made this
> >> morning on a QNX machine? (based on your patch, thank you for that...)
> >
> > Still needs some tweak, as the output is:
> >
> > getconf: Can't find _NPROCESSORS_ONLN
> > ProcessorCount: using getconf '/usr/bin/getconf'
> > ProcessorCount: using pidin '/bin/pidin'
> > processor_count='1'
> >
> > Patch attached.
> >
> > Eike
>
> I wonder if we could create a test for this that called the
> SystemInformation class and compared its results with this script. I
> bet it would fix bugs in both the script and SystemInformation.
It would show up for sure places where at one place this is divided into
physical and logical cores and just "cpus" on the other hand.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20101108/2fd3cb31/attachment.pgp>
More information about the cmake-developers
mailing list