[Dune] Parallel building?

Steffen Müthing steffen.muething at iwr.uni-heidelberg.de
Mon Feb 15 14:19:10 CET 2016


Hi Aleksejs,

> Am 15.02.2016 um 12:00 schrieb Aleksejs Fomins <aleksejs.fomins at lspr.ch>:
> 
> Dear Dune,
> 
> Is it possible to build dune modules in parallel?

what do you mean by build in parallel? You cannot build multiple modules in parallel,
but what you can do is build multiple targets within a module in parallel. There are two
ways to do that:

1) Put a MAKE_FLAGS variable into your opts file: MAKE_FLAGS="-j“ or, if you want to specify
the amount of parallelism "-j <number of parallel builds>“

2) Even faster: Install ninja (https://ninja-build.org) and put "-G ninja“ into your CMAKE_FLAGS. Note
that you then have to run ninja instead of make. It’s quite a bit better than make at extracting parallelism,
though. The only disadvantage is that you can only call ninja from the top level of each module’s build directory.

Steffen

> 
> To do so, would one specify a "-j" CMake flag in the opts file, or there is a special flag for dunecontrol maybe?
> 
> Greetings,
> Aleksejs
> 
> _______________________________________________
> Dune mailing list
> Dune at dune-project.org
> http://lists.dune-project.org/mailman/listinfo/dune

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 455 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <https://lists.dune-project.org/pipermail/dune/attachments/20160215/2246fb00/attachment.sig>


More information about the Dune mailing list