[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 10:30:16 PDT 2016
mehdi_amini added inline comments.
================
Comment at: lib/Support/Host.cpp:1239
+// On other systems, return -1 to indicate unknown.
+int computeHostNumPhysicalCores() { return -1; }
+#endif
----------------
aaron.ballman wrote:
> No Windows implementation? Should be able to use `GetLogicalProcessorInformation()` pretty easily.
>
> https://msdn.microsoft.com/en-us/library/windows/desktop/ms683194(v=vs.85).aspx
Patch welcome :)
I'll supply the MacOS version when possible.
https://reviews.llvm.org/D25564
More information about the llvm-commits
mailing list