[mesa-users] parallel make

Bill Paxton paxton at kitp.ucsb.edu
Wed Dec 3 14:32:38 EST 2014


On Dec 3, 2014, at 11:28 AM, Richard Townsend wrote:

> 
>> On Dec 3, 2014, at 1:13 PM, Bill Paxton <paxton at kitp.ucsb.edu> wrote:
>> 
>> Hi Aaron,
>> 
>> On Dec 3, 2014, at 11:10 AM, Aaron Dotter wrote:
>> 
>>> Plain old make will do this just fine.  You just do make -j N, N is number of cores. Works like a charm once you have the dependencies specified in full. 
>> 
>> Great.  That answers the question I just sent to Mike.
>> 
>> Are there tools for extracting the dependencies automatically?    I think Rich uses something for that with GYRE.   Right?
>> 
> 
> Yep — GYRE uses the ‘fpx3’ preprocessor, which helpfully writes out a dependency list (as Fortran comments) in the top of each source file it creates. I then use another script, ‘fpx3_deps’, to extract the dependency info and automagically create a make dependency list.
> 
> Both fxp3 and fpx3_deps are part of the MESA SDK (to allow GYRE to compile correctly). But for compiling MESA, it would probably be better to use a different tool that does dependency extraction without the pre-processing. 
> 

Hi Rich,

Lovely.  Sounds like I need to start by adapting mesa/star to use those scripts from the sdk.  

Let's take this off-line while we get that working.   

Thanks everyone --- an early merry christmas!

Cheers,
Bill


p.s. so Rich, how do I use those scripts for mesa/star?









> cheers,
> 
> Rich
> 
>>> 
>>> We talked about this once LONG ago but it wasn't deemed worth the trouble at the time.  
>> 
>> Ahh --- yes, I recall that now.      Well, you were way out ahead of me.  ;D
>> 
>> -Bill
>> 
>> 
> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.mesastar.org/pipermail/mesa-users/attachments/20141203/c2105b07/attachment.html>


More information about the Mesa-users mailing list