golovashkin

number of physical cores (excluding hyperthreading)

Discussion created by golovashkin on Jan 10, 2011
Latest reply on Apr 12, 2011 by merry1

Hi,

Does ACML have a function/way to query the number of physical cores on the machine?   When hyperthreading is enabled I get an "inflated" number of cores, and need to know only the physical/actual ones...

So far, every single method I have tried gives me back the total number (including the hyper threading) for instance omp_get_num_threads, Linux-specific sysconf(), C++0x thread::hardware_concurrency(), etc.

Thank you!

Kind regards,

dm.

Outcomes