User Tools

Site Tools


build:compile

This is an old revision of the document!


Compiling abinit once you have configured is usually as simple as

make

and going to have a coffee.

You can make with several threads (here 4) at the same time to go faster:

make -j 4

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.

build/compile.1495617757.txt.gz · Last modified: 2017/05/24 11:22 by Matthieu Verstraete