Skip to content
Back to formatted view

Raw Message

Message-ID: <4933B025.7000701@statistik.tu-dortmund.de>
Date: 2008-12-01T09:36:37Z
From: Uwe Ligges
Subject: parallel build for package? (equivalent of make -j8)
In-Reply-To: <4932CD8A.6000402@biostat.ku.dk>

Peter Dalgaard wrote:
> Whit Armstrong wrote:
>> I have a package that takes about 20 minutes to compile which tends to
>> prolong the compile/test/compile cycle.
>>
>> Does anyone know how to get R CMD check or R CMD INSTALL to use 
>> parallel make?
>>
>> I looked at R CMD INSTALL --help, but I don't see anything obvious
>> arguments to do this.
> 
> Platform?
> 
> Does
> 
> MAKE="make -j8" R CMD INSTALL ...
 >
> not work?

I cannot believe this works safely, at least when installing into the 
same library, because of R's lock mechanism that locks a library if 
*one* installation is running ...

Best,
Uwe


> (Beware: Here there be Tygers. Parallel makes have their surprises....)
>