Redmond, Paul
2013-Jan-16 19:38 UTC
[LLVMdev] Setting number of lit threads with make check
Hi, Does anyone know how I can set the number of threads lit uses when invoked by make check? Lit has the —threads argument but this doesn't get set when run through make so it uses the max number of cpus. paul
Try: make check-all LIT_ARGS="-s -j10" To limit the threads to 10, for example. On Wed, Jan 16, 2013 at 1:38 PM, Redmond, Paul <paul.redmond at intel.com> wrote:> Hi, > > Does anyone know how I can set the number of threads lit uses when invoked by make check? Lit has the —threads argument but this doesn't get set when run through make so it uses the max number of cpus. > > paul > > _______________________________________________ > LLVM Developers mailing list > LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
Redmond, Paul
2013-Jan-16 23:59 UTC
[LLVMdev] Setting number of lit threads with make check
Thanks. I discovered it's different for cmake builds. You have to use cmake -DLLVM_LIT_ARGS="..." instead. Paul On 2013-01-16 3:43 PM, "Will Dietz" <willdtz at gmail.com> wrote:>Try: > >make check-all LIT_ARGS="-s -j10" > >To limit the threads to 10, for example. > >On Wed, Jan 16, 2013 at 1:38 PM, Redmond, Paul <paul.redmond at intel.com> >wrote: >> Hi, >> >> Does anyone know how I can set the number of threads lit uses when >>invoked by make check? Lit has the ‹threads argument but this doesn't >>get set when run through make so it uses the max number of cpus. >> >> paul >> >> _______________________________________________ >> LLVM Developers mailing list >> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu >> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
What I've seen somewhere and been using is make check-all 'LIT_ARGS=-v -j4' I think that does work reliably since the -v gets passed through, though I've never checked that the 4 processes I see aren't because I've got a 4 core machine rather than due to the -j4... Hope this helps, Dave -----Original Message----- From: llvmdev-bounces at cs.uiuc.edu [mailto:llvmdev-bounces at cs.uiuc.edu] On Behalf Of Redmond, Paul Sent: 16 January 2013 19:39 To: llvmdev at cs.uiuc.edu Subject: [LLVMdev] Setting number of lit threads with make check Hi, Does anyone know how I can set the number of threads lit uses when invoked by make check? Lit has the -threads argument but this doesn't get set when run through make so it uses the max number of cpus. paul _______________________________________________ LLVM Developers mailing list LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev