[PATCH] D75153: [ThinLTO] Allow usage of all SMT threads in the system

Robert Richmond via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 27 13:30:36 PST 2020


RobRich999 added a comment.

Based upon the description, I think this patch is more applicable than just targeting a specific AMD proc family since it allows the end-user a choice for maximizing threading with both CMT and SMT on all supported platforms.

BTW, until if/when this patch lands, I just set a static value in source as a local workaround for now.

llvm/lib/Support/Host.cpp

#elif defined(_WIN32)
// Defined in llvm/lib/Support/Windows/Threading.inc
static int computeHostNumPhysicalCores() { return 32; }
#else


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D75153/new/

https://reviews.llvm.org/D75153





More information about the cfe-commits mailing list