[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
Mon Nov 1 03:38:04 PDT 2021


SunBlack updated this revision to Diff 383760.
SunBlack added a comment.

Updates the description. I'm still thinking about writing that the use of ``-j$(nproc)`` is recommended, if the system supports it, in environments with a number of dynamic CPU threads (e.g. due to different build agents).


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

https://reviews.llvm.org/D112705

Files:
  README.md


Index: README.md
===================================================================
--- README.md
+++ README.md
@@ -94,8 +94,9 @@
 
         * 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.
+          In most cases, you get the best performance if you specify the number of CPU threads you have.
+          On some Unix systems, you can specify this with ``-j$(nproc)``.
 
       * For more information see [CMake](https://llvm.org/docs/CMake.html)
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112705.383760.patch
Type: text/x-patch
Size: 759 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211101/1ce90b59/attachment.bin>


More information about the llvm-commits mailing list