Software Archive
Read-only legacy content
17060 Discussions

hardware_concurrency() returns 0

dnesteruk
Beginner
705 Views

Just wanted to report a bug: when calling thread::hardware_concurrency(), I get a 0 (zero) instead of 240 :(

0 Kudos
1 Reply
Kevin_D_Intel
Employee
705 Views

Thank you for the report on this. It does appear this should be implemented in the GCC 4.7 header/libs used when targeting the Intel Xeon Phi™ and thus a non-zero value should be returned. I reported this to compiler Development (see internal tracking id below). I am not sure whether this is a compiler/run-time issue or if it falls on the MPSS side but I will keep you posted on what I learn.

(Internal tracking id: DPD200257008)

0 Kudos
Reply