[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:04:12 PDT 2016


mehdi_amini added a comment.

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?


The reason is that if you have for instance very memory heavy tasks, and you know (by experiment) that you don't benefit much from hyper-threading in terms of runtime, it seems more friendly to kick less threads (divide memory peak by 2).


Repository:
  rL LLVM

https://reviews.llvm.org/D25564





More information about the llvm-commits mailing list