[Dune] Parallel building?
Aleksejs Fomins
aleksejs.fomins at lspr.ch
Mon Feb 15 14:32:59 CET 2016
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hey Steffen,
Thanks, that's exactly what I had in mind. I'll give it a try.
At some point I realised that waiting 15 min when I need to rebuild the entire thing is a bit unnecessary :)
Aleksejs
On 15.02.2016 14:19, Steffen Müthing wrote:
> 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
>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJWwdOLAAoJEDkNM7UOEwMZzoYP/2JqmALtIh46rGspe7c292DU
Ib8/IGgUtoB/l8w69iUE3Jie/9p8Mdnkxu9CayV65wRXG3eaKz6EwwABfTmrpSjA
Ocj7Coyg236K4vJcPtGwM/ZQyT7sHndzwo2tWXd6r1qvxUKk+OX9P1usCllDVJaF
JT6ruRnc3+yqmPJXlr8DWoYSinO8DYcBO1dmqwy2Ns/DFXftN2z97MjKxaImSqqF
EJxMQWzLqQiyEubUcRK8k836hrqf4ZcRCSSaLr1+hsNM8xjBacWNAcFiRed+JCq0
+YUp/LyvlzTTWBJfnBY0c6w4FDffLovp/guTfI9VKfA7f7rBGV8tUnUF+8Y7DmY2
qCrl9QUI1WIzqmvLnMikksBCUHs0p/7KPuWpWliG/nBDWP6l+x2lnJPpLi5N7rIT
lP/ZLeZSYcB5hU0utY7jcfQMb28Vt+1jX60jWagmVOKvU/2pW8m4RN2RHdk3rzLu
WgKVaCl55ey2CoX7hQaG72t2zy+LsmzZV+/D/u2Rffu3Ts4LJ/DJiFTGyae1rGCk
5bbsEZXBGRhKwtBLifUNvp3cr9/ZAFoTysodF4qwBwXqQsMSRuSzxIFwqgLwOq/R
yFR2awUl9lKHRD8D+qLoQ9/R/1FkdzrXktpdQwCAbT1Law28cNw0A8HTFwvzZVsH
+uCT8v3MGlX7odZ/hdzG
=pItb
-----END PGP SIGNATURE-----
More information about the Dune
mailing list