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

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 11:07:35 PDT 2016


kparzysz added a comment.

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

> 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).


Then what's stopping us from returning that number as "preferred number of concurrent tasks"?  Instead we have something motivated by x86 that may or may not work well on other architectures.


Repository:
  rL LLVM

https://reviews.llvm.org/D25564





More information about the llvm-commits mailing list