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.
Details
- Reviewers
jhenderson mehdi_amini
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Event Timeline
llvm/docs/TestingGuide.rst | ||
---|---|---|
186 | Isn't lit running in parallel by default? $ ./bin/llvm-lit ../mlir/test -- Testing: 1036 tests, 96 workers -- |
llvm/docs/TestingGuide.rst | ||
---|---|---|
186 | I think this patch is trying to document how to limit the number of workers on a machine to something less than the number of hardware threads. At least the description says that this is based on some suggestion of mine and the last time I commented on anything related to LIT_OPTS was when I told someone on the Discord's 'beginner' channel how to make lit only run tests on one core (please correct me if I got that wrong @xgupta ). The current way the patch is formulating this makes it actually sound like parallelism in lit is opt-in, so I think that could be rephrased. I also wonder how useful this information actually is as I don't think many people care about limiting the number of test threads. We already point to the lit docs which document all of this, but maybe we should just briefly mention LIT_OPTS as a quick way to configure lit? We could have export LIT_OPTS="-j1" as an example then. |
Oops I missed the point. Then I agree with @teemperor, this information is not useful for many users if the option is only to limit the threads.
Isn't lit running in parallel by default?
ninja check spawn as many workers as core on my machine...