Recipe to compile abinit 7.8.2 on UBUNTU 14.04 (64bits)

option, parallelism,...

Moderators: fgoudreault, mcote

Forum rules
Please have a look at ~abinit/doc/config/build-config.ac in the source package for detailed and up-to-date information about the configuration of Abinit 8 builds.
For a video explanation on how to build Abinit 7.x for Linux, please go to: http://www.youtube.com/watch?v=DppLQ-KQA68.
IMPORTANT: when an answer solves your problem, please check the little green V-like button on its upper-right corner to accept it.
Locked
User avatar
admin
Site Admin
Posts: 33
Joined: Thu Sep 17, 2009 9:49 am

Recipe to compile abinit 7.8.2 on UBUNTU 14.04 (64bits)

Post by admin » Sun Sep 28, 2014 7:37 pm

Recipe for a x86-64 / ubuntu 14.04 (64bits) / abinit 7.8.2 :

Same procedure as for ubuntu 13.04 (64bits)/abinit 7.6.3 but without installing the etsf-io package.

We need etsf-io version 1.0.4 for abinit 7.8.x but, up to now, only version 1.0.3 is available on ubuntu :
root@ktulu:~# apt-cache show etsf-io | grep Filename
Filename: pool/universe/e/etsf-io/etsf-io_1.0.3-4build1_amd64.deb


Then, from a fresh install :

1) installation of theses packages :

Code: Select all

sudo apt-get -y install gcc g++ gfortran
sudo apt-get -y install patch

sudo apt-get -y install libnetcdf-dev

sudo apt-get -y install libfftw3-dev

sudo apt-get -y install libatlas-base-dev  libatlas3gf-base
sudo apt-get -y install liblapack3gf liblapack-dev
sudo apt-get -y install libblas3gf libblas-dev

sudo apt-get -y install openmpi-bin openmpi-common libopenmpi-dev


2) download of abinit sources ( http://www.abinit.org )

Code: Select all

cd /tmp
wget http://ftp.abinit.org/abinit-7.8.2.tar.gz
tar xzf abinit-7.8.2.tar.gz
cd abinit-7.8.2


3) create a "ubuntu.ac" file :

Code: Select all

prefix="/usr/local"
enable_mpi="yes"
enable_mpi_io="yes"
with_mpi_prefix="/usr"
with_trio_flavor="netcdf+etsf_io"
with_netcdf_incs="-I/usr/include"
with_netcdf_libs="-L/usr/lib -lnetcdf -lnetcdff"
with_fft_flavor="fftw3"
with_fft_incs="-I/usr/include/"
with_fft_libs="-L/usr/lib/x86-64-linux-gnu/ -lfftw3 -lfftw3f"
with_linalg_flavor="atlas"
with_linalg_libs="-L/usr/lib64 -llapack -lf77blas -lcblas -latlas"
with_dft_flavor="atompaw+libxc"
#with_dft_flavor="atompaw+bigdft+libxc+wannier90"


4) make abinit

Code: Select all

 ./configure --with-config-file="./ubuntu.ac"
make multi multi_nprocs=10


For the next steps ( 5-> 7 ), you can visit this topic.

Locked