[PATCH] D106521: [Docs] Mention how to run lit tests in parallel
Shivam Gupta via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 21 21:43:48 PDT 2021
xgupta created this revision.
xgupta added a reviewer: jhenderson.
xgupta requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
make check-llvm -jN doesn't seems to control workers. So incase someone want to use their cpu
threads, these commands can help them. Thanks Raphael (teemperor) for suggesting this.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D106521
Files:
llvm/docs/TestingGuide.rst
Index: llvm/docs/TestingGuide.rst
===================================================================
--- llvm/docs/TestingGuide.rst
+++ llvm/docs/TestingGuide.rst
@@ -173,6 +173,17 @@
% llvm-lit ~/llvm/test/CodeGen/ARM
+If you want to run lit tests with multiple(N) threads, use:
+
+.. code-block:: bash
+
+ % export LIT_OPTS="-jN"
+
+And then just run check-llvm or any other check- command.
+
+or if you want to make it parmanent for that specific build, pass
+-DLLVM_LIT_ARGS="-sv jN" to CMake.
+
For more information on using the :program:`lit` tool, see ``llvm-lit --help``
or the :doc:`lit man page <CommandGuide/lit>`.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D106521.360697.patch
Type: text/x-patch
Size: 643 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210722/b6ed2940/attachment.bin>
More information about the llvm-commits
mailing list