It appears to me that user's choices for enable_optim are not properly echoed to fallbacks configurations.
For example, with an enable_optim="aggressive" and enable_debug="no" configuration file, the first compilation call in netCDF shows
Code: Select all
/opt/mpich2-1.3.2p1_ifc-11.1_m64/bin/mpif90 -I../libsrc -I. -free -extend-source -vec-report0 -noaltparam -nofpscomp -O3 -xHOST -DNDEBUG -DpgiFortran -g -O2 -I/home/myself/Devel/abinit/bzr/jacques/7.0.2-private/tmp-build2/fallbacks/exports/include -c -o typeSizes.o typeSizes.f90
i.e. the intended optimization flags -O3 -xHOST precede the default -g -O2 and therefore are ignored.
Similarly in libxc
Code: Select all
/bin/bash ../libtool --tag=CC --mode=compile /opt/mpich2-1.3.2p1_ifc-11.1_m64/bin/mpicc -DHAVE_CONFIG_H -I. -I.. -I/home/myself/Devel/abinit/bzr/jacques/7.0.2-private/tmp-build2/fallbacks/exports/include -g -O2 -MT special_functions.lo -MD -MP -MF .deps/special_functions.Tpo -c -o special_functions.lo special_functions.c
i.e. optimization flags are ignored
And in bigDFT, the configure final step reports
Code: Select all
Fortran90 flags: -free -extend-source -vec-report0 -noaltparam -nofpscomp -O3 -xHOST -g -O2 -I/home/myself/Devel/abinit/bzr/jacques/7.0.2-private/tmp-build2/fallbacks/exports/include -assume noold_unit_star
i.e. again the -O3 is superseded by -O2
Would it be possible the check the consistency of the optimization options all the way through the build?
Kind regards,
Alain