[cmake-developers] Fixing ProcessorCount.cmake
Rolf Eike Beer
eike at sf-mail.de
Tue Nov 9 15:36:02 EST 2010
Am Dienstag, 9. November 2010 schrieb David Cole:
> First, I would like to make sure we get the ProcessorCount module
> reasonably correct on all the platforms that the CMake community cares
> about.
When we could use SystemInformation, why duplicate this? I don't think this
module should go into any official version if we can get the information from
SystemInformation. But it's good for testing anyway.
> Then, secondly, I think the SystemInformation output should be
> explainable or self-consistent, before we decide which numbers to
> compare between the two different methods.
Yes, absolutely agreed. This includes that for every platform there should be
at least one multicore machine in the test builds to be actually able to see
if things work out.
> Thirdly, it would be a good idea to do the comparison and see if there
> are differences on the dashboard machines.
QNX will not work as the SystemInformation stuff there is totally broken. It
tries to read /proc/cpuinfo which is simply not there. I posted a patch to
this in bug 11329 which needs to be merged for this to work.
> Fourthly, (lastly?), once they are consistent everywhere we care
> about, maybe we should consider simply building SystemInformation into
> a CMake built-in command, so that we can access the information
> without doing an execute_process from the ProcessorCount module...
I second that.
Eike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20101109/2d937cf7/attachment.sig>
More information about the cmake-developers
mailing list