[cmake-developers] What should the behaviour of NUMBER_OF_LOGICAL_CORES be?

Nicolás Bértolo nicolasbertolo at gmail.com
Thu Jan 26 15:56:50 EST 2017


Hi,

This question comes from https://gitlab.kitware.com/cmake/cmake/issues/16594
Currently cmake_host_system_information(RESULT logical QUERY 
NUMBER_OF_LOGICAL_CORES) is buggy, some parts of the code that implement 
it assume it refers to the number of cores in the system and some assume 
it is the number of cores per physical core. The documentation implies 
it is the total number of cores, but in my system (AMD FX-8320) it is 
equal to 1 when it should be 8.

I have offered myself to fix this bug, but first I would like to know 
what is the correct return value of this call should be.
Should it return the number of cores per physical core or the total 
number of cores in the system?

I think it should be the latter, but I would like to hear your opinions.

Regards,
Nicolás.

||



---
El software de antivirus Avast ha analizado este correo electrónico en busca de virus.
https://www.avast.com/antivirus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20170126/dd077652/attachment.html>


More information about the cmake-developers mailing list