Scheduled Downtime
On Friday 21 April 2023 @ 5pm MT, this website will be down for maintenance and expected to return online the morning of 24 April 2023 at the latest

slow compilation/build of WRF

sdurski

New member
Is there an established approach for getting fast compile times for WRF? For example if I'm doing code development, I might be more concerned with fast-compile times than fast model execution. In general I check out a dedicated node on a supercomputer, and try to compile in parallel with maybe '-j 12'. Often though the compilation seems to bottleneck to significant cpu consumption on a single processor. The model can take 1-2 hours for a full compile. This is a really difficult turn-around time, for development work. I've worked with numerous other gfd models and none take anywhere near as long. I'm guessing this has something to do with the extent to which WRF uses fortran modules.
 
You can try to use the new compile_new and configure_new scripts to do compilation. This method generally alleviates some of the serialized compilation and can have a drastic improvement in compile times. This comment has a small breakdown of timing for GNU compilation for old vs new compilation methods:
 
Thank you islas. I'm building WRF as part of a coupled model system which constrains me to using WRF 4.5. Any chance configure_new and compile_new have backward compatibility?
 
Top