User Tools

Site Tools


build:compile

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Last revisionBoth sides next revision
build:compile [2017/05/24 11:23] Matthieu Verstraetebuild:compile [2017/05/24 11:25] Matthieu Verstraete
Line 5: Line 5:
 You can make with several threads (here 4) at the same time to go faster:  You can make with several threads (here 4) at the same time to go faster: 
 <code>make -j 4</code> <code>make -j 4</code>
-The build system is clever and does things in the right order to not get ahead of itself (it has to build modules before it uses them). As a rule -j <number of cores> is a good idea, but if you want you can go quite high in number of threads (even higher than your number of cores). They are not using the system resources in a synchronous manner and there are usually not 4 gfortran instances running at the same time. At worst individual threads may slow down. If things do stop and the compiler complains, make without threads to be sure it's not simply an issue of precedence.  +The build system is clever and does things in the right order to not get ahead of itself (it has to build modules before it uses them). As a rule -j <number of cores> is a good idea. If things do stop and the compiler complains, run make again without threads to be sure it's not simply an issue of precedence.  
build/compile.txt · Last modified: 2017/05/25 10:59 by Matthieu Verstraete