Static Yambo: Difference between revisions

From The Yambo Project
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 9: Line 9:
./configure FC=gfortran --with-lapack-libs="/home/attacc/SOFTWARE/lapack-3.11/liblapack.a" --with-blas-libs="/home/attacc/SOFTWARE/lapack-3.11/librefblas.a" --enable-mpi=no  
./configure FC=gfortran --with-lapack-libs="/home/attacc/SOFTWARE/lapack-3.11/liblapack.a" --with-blas-libs="/home/attacc/SOFTWARE/lapack-3.11/librefblas.a" --enable-mpi=no  
</code>
</code>
where we linked it to a static compiled lapack library, downloaded from: [https://github.com/Reference-LAPACK/lapack/archive/refs/tags/v3.11.tar.gz lapack-3.11]


and changing the flags in config/setup in such a way to have static compilation:
and changing the flags in config/setup in such a way to have static compilation:

Latest revision as of 13:27, 13 March 2024

In this page we explain how to compile a static serial version of Yambo that can be transferred on different PC (using the same kind of processor). Here we prove a serial version of Yambo compiled on linux on x86 processors:

Compiles serial static yambo

this version has been obtained by configuring yambo as:

./configure FC=gfortran --with-lapack-libs="/home/attacc/SOFTWARE/lapack-3.11/liblapack.a" --with-blas-libs="/home/attacc/SOFTWARE/lapack-3.11/librefblas.a" --enable-mpi=no

where we linked it to a static compiled lapack library, downloaded from: lapack-3.11

and changing the flags in config/setup in such a way to have static compilation:

cflags      = -O2 -static -D_C_US -D_FORTRAN_US
fcflags     = -O2 -g -static
fcuflags    = -O0 -g -static
fflags      = -O2 -g -static
fuflags     = -O0 -g -static