<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.yambo-code.eu/wiki/index.php?action=history&amp;feed=atom&amp;title=Compiler_specific_flags</id>
	<title>Compiler specific flags - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.yambo-code.eu/wiki/index.php?action=history&amp;feed=atom&amp;title=Compiler_specific_flags"/>
	<link rel="alternate" type="text/html" href="https://wiki.yambo-code.eu/wiki/index.php?title=Compiler_specific_flags&amp;action=history"/>
	<updated>2026-05-26T07:44:45Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://wiki.yambo-code.eu/wiki/index.php?title=Compiler_specific_flags&amp;diff=8045&amp;oldid=prev</id>
		<title>Davide: Page created</title>
		<link rel="alternate" type="text/html" href="https://wiki.yambo-code.eu/wiki/index.php?title=Compiler_specific_flags&amp;diff=8045&amp;oldid=prev"/>
		<updated>2024-09-09T14:43:24Z</updated>

		<summary type="html">&lt;p&gt;Page created&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;GNU/Linux: ifort, ifort 11.0 with netCDF and iotk/p2y 4.0 support, serial &lt;br /&gt;
 ./configure FC=ifort --with-netcdf-lib=/usr/local/libraries/netcdf/4.0.1/ifort--11.1/lib --with-netcdf-include=/usr/local/libraries/netcdf/4.0.1/ifort--11.1/include --with-iotk=/opt/espresso/4.1.2/iotk/ --with-p2y=4.0 --with-blacs=no&lt;br /&gt;
&lt;br /&gt;
A typical configure command line that can be used to link the mkl BLAS, LAPACK and FFTW is (thanks to Giovanni Pizzi for this!)&lt;br /&gt;
 ./configure FC=ifort \&lt;br /&gt;
 --with-blas=&amp;quot;-L/opt/intel/Compiler/11.1/073/mkl/lib/em64t/ -lmkl_core -lmkl_intel_lp64 -lmkl_sequential&amp;quot; \&lt;br /&gt;
 --with-lapack=&amp;quot;-L/opt/intel/Compiler/11.1/073/mkl/lib/em64t/ -lmkl_core -lmkl_intel_lp64 -lmkl_sequential&amp;quot; \&lt;br /&gt;
 --with-blacs=&amp;quot;-L/opt/intel/Compiler/11.1/073/mkl/lib/em64t/ -lmkl_core -lmkl_intel_lp64 -lmkl_sequential&amp;quot; \&lt;br /&gt;
 --with-scalapack=&amp;quot;-L/opt/intel/Compiler/11.1/073/mkl/lib/em64t/ -lmkl_core -lmkl_intel_lp64 -lmkl_sequential&amp;quot; \&lt;br /&gt;
 --with-fftw=&amp;quot;/opt/intel/Compiler/11.1/073/mkl/lib/em64t/&amp;quot; \&lt;br /&gt;
 --with-fftw-lib=&amp;quot;-lmkl_core -lmkl_intel_lp64 -lmkl_sequential&amp;quot; \&lt;br /&gt;
&lt;br /&gt;
Production runs&lt;br /&gt;
 FCFLAGS=&amp;#039;-O3 -xW -tpp7 -assume bscc -nofor_main&amp;#039; &lt;br /&gt;
 LDFLAGS=&amp;#039;-xW&amp;#039; --with-blacs=no&lt;br /&gt;
 ./configure FC=mpif90&lt;br /&gt;
&lt;br /&gt;
Debugging runs&lt;br /&gt;
 ./configure --enable-debug FC=mpif90 CFLAGS=&amp;#039;-O0 -g&amp;#039; FCFLAGS=&amp;#039;-O0 -tpp7 -C -check noarg_temp_created -w90 -w95  -assume bscc -nofor_main -g&amp;#039; --with-blacs=no&lt;br /&gt;
&lt;br /&gt;
Debugging runs (GNU/Linux: g95)&lt;br /&gt;
 ./configure FC=g95 FCFLAGS=&amp;#039;-O0 -fbackslash -g&amp;#039; CFLAGS=&amp;#039;-O0 -g -Dextcus -Dextfus&amp;#039; CC=gcc --with-blacs=no&lt;br /&gt;
&lt;br /&gt;
Production runs (GNU/Linux: g95)&lt;br /&gt;
 ./configure FC=g95 FCFLAGS=&amp;quot;-O3 -fbackslash -fno-second-underscore&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Debugging runs (GNU/Linux: gfortran)&lt;br /&gt;
 ./configure --enable-debug --without-mpi FC=gfortran FCFLAGS=&amp;#039;-O0 -g -fbounds-check&amp;#039; CFLAGS=&amp;#039;-O0 -g -Dextcus -Dextfus&amp;#039;  CC=gcc --with-blacs=no&lt;br /&gt;
&lt;br /&gt;
GNU/Linux: PGI Fortran&lt;br /&gt;
 ./configure FC=pgf95&lt;br /&gt;
&lt;br /&gt;
GNU/Linux: SUN Fortran&lt;br /&gt;
 ./configure FC=f95&lt;br /&gt;
&lt;br /&gt;
GNU/Linux: Pathscale Fortran&lt;br /&gt;
 ./configure FC=pathf90 PFC=mpif90 FCFLAGS=&amp;quot;-fno-second-underscore&amp;quot; UFFLAGS=&amp;quot;-fno-second-underscore&amp;quot;&lt;br /&gt;
&lt;br /&gt;
GNU/Linux: Open64 Fortran&lt;br /&gt;
 ./configure FC=openf95 FCFLAGS=&amp;quot;-fno-second-underscore&amp;quot; UFFLAGS=&amp;quot;-fno-second-underscore&amp;quot; &lt;br /&gt;
 &lt;br /&gt;
GNU/Linux using xlf, Tested on Mare nostrum (ppc64). Production runs&lt;br /&gt;
 ./configure CC=xlc F77=xlf PFC=mpif90 --with-blacs=no&lt;br /&gt;
with NETCDF support&lt;br /&gt;
 ./configure CC=xlc F77=xlf PFC=mpif90 \&lt;br /&gt;
 --with-netcdf-include=/gpfs/apps/NETCDF/netcdf-3.6.0_64/include \&lt;br /&gt;
 --with-netcdf-lib=/gpfs/apps/NETCDF/netcdf-3.6.0_64/lib --with-blacs=no&lt;br /&gt;
&lt;br /&gt;
Magerit (CeSViMa). Production runs with NetCDF support&lt;br /&gt;
 ./configure PF90=xlf90_r FC=xlf90_r F77=xlf_r CC=xlc_r CPP=&amp;quot;cpp -P&amp;quot; \ --with-blas=/gpfs/apps/BLAS/1.0.0/64/lib/libblas.a --with-lapack=/gpfs/apps/LAPACK/3.0/64/liblapack.a \ --with-netcdf-include=/gpfs/apps/NETCDF/3.6.0/64/include --with-netcdf-lib=/gpfs/apps/NETCDF/3.6.0/64/lib \ --with-fftw=/gpfs/apps/FFTW/3.2/64/lib&lt;br /&gt;
&lt;br /&gt;
Default&lt;br /&gt;
 ./configure &lt;br /&gt;
&lt;br /&gt;
ACML libraries, Production runs&lt;br /&gt;
 ./configure --with-blas=$ACMLPATH/libacml.a --with-lapack=$ACMLPATH/libacml.a&lt;br /&gt;
&lt;br /&gt;
FFT in ACML not supported yet MKL libraries, Production runs&lt;br /&gt;
 export MKLROOT=/applis/intel/mkl&lt;br /&gt;
 export MKLPATH=${MKLROOT}/lib/intel64&lt;br /&gt;
 export MKLINCLUDE=${MKLROOT}/include&lt;br /&gt;
 export MKLLIBS=&amp;quot;-L${MKLPATH} -I${MKLINCLUDE} -I${MKLINCLUDE}/intel64/lp64 -llapack -lmkl_blas95_lp64 -lmkl_lapack95_lp64 -Wl,--start-group &lt;br /&gt;
                ${MKLPATH}/libmkl_intel_lp64.a ${MKLPATH}/libmkl_sequential.a ${MKLPATH}/libmkl_core.a -Wl,--end-group -lpthread&amp;quot;&lt;br /&gt;
&lt;br /&gt;
 ./configure FC=ifort F77=ifort --with-blas=&amp;quot;$MKLLIBS&amp;quot; --with-lapack=&amp;quot;$MKLLIBS&amp;quot;&lt;br /&gt;
&lt;br /&gt;
use this page (link to be fixed) to determine the exact library version for your system: Intel MKL Link Line Advisor  FFT in MKL are supported through the FFTW interface presents in the latest MKL packages.&lt;br /&gt;
 --with-fftw=&amp;quot;${MKLROOT}/interfaces/fftw3xf/&amp;quot; &lt;br /&gt;
 --with-fftw-lib=&amp;quot;${MKLROOT}/interfaces/fftw3xf/libfftw3xf_intel.a $MKLLIBS&amp;quot;&lt;/div&gt;</summary>
		<author><name>Davide</name></author>
	</entry>
</feed>