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

Aaron Ballman via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 13 10:28:28 PDT 2016


aaron.ballman added inline comments.


================
Comment at: lib/Support/Host.cpp:1239
+// On other systems, return -1 to indicate unknown.
+int computeHostNumPhysicalCores() { return -1; }
+#endif
----------------
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


https://reviews.llvm.org/D25564





More information about the llvm-commits mailing list