[mesa-users] parallel make
Richard Townsend
townsend at astro.wisc.edu
Wed Dec 3 14:28:02 EST 2014
> 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.
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/58264abd/attachment.html>
More information about the Mesa-users
mailing list