[PATCH] D25564: Add interface to compute number of physical cores on host system

Mehdi AMINI via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 11:05:58 PDT 2016


mehdi_amini added a comment.

In https://reviews.llvm.org/D25564#569457, @mehdi_amini wrote:

> In https://reviews.llvm.org/D25564#569453, @kparzysz wrote:
>
> > Why specifically asking about physical cores?  Should this ask instead about the preferred number of concurrent tasks?
>


Note also, we already have `llvm::thread::hardware_concurrency()` that returns the "concurrent tasks" (i.e. virtual cores on machines with hyper-threading).


Repository:
  rL LLVM

https://reviews.llvm.org/D25564





More information about the llvm-commits mailing list