[PATCH] D112705: Add hint to readme, how to use automatically the optimal number of CPU cores

Heiko Thiel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 28 04:47:22 PDT 2021


SunBlack created this revision.
SunBlack requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Usually the best compile performance you get via calling `make -j$(nproc)` as it is using the number of available CPU cores (more doesn't increase usually the performance but increases the required memory).

Usually you get the best compilation performance by calling `make -j$(nproc)`, since it uses the number of CPU cores available (more usually does not increase performance, but increases the memory needed).  Furthermore, the change fixes the incorrect wording of specifying the number of CPUs (which is usually 1 on desktop systems) instead of CPU cores.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D112705

Files:
  README.md


Index: README.md
===================================================================
--- README.md
+++ README.md
@@ -94,8 +94,8 @@
 
         * Running a serial build will be **slow**.  To improve speed, try running a
           parallel build.  That's done by default in Ninja; for ``make``, use the option
-          ``-j NNN``, where ``NNN`` is the number of parallel jobs, e.g. the number of
-          CPUs you have.
+          ``-j NNN``, where ``NNN`` is the number of parallel jobs to run.
+          It is recommended to specify the number of CPU cores you have via ``-j$(nproc)`.
 
       * For more information see [CMake](https://llvm.org/docs/CMake.html)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112705.382990.patch
Type: text/x-patch
Size: 670 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211028/da4116c6/attachment.bin>


More information about the llvm-commits mailing list