Skip to Content.
Sympa Menu

forum - Problem putting a specific compilation option per directory

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Problem putting a specific compilation option per directory


Chronological Thread 
  • From: muriel.delaveau@cea.fr
  • To: forum@abinit.org
  • Subject: Problem putting a specific compilation option per directory
  • Date: Tue, 29 May 2007 16:33:29 +0200

I try to make a specific compilation option for 21drive for instance
I put in the configuration file (given in attachment)

FCFLAGS="-O3"
with_fortran_optflags="-O3"
fcflags_opt_21drive="-O0"

After when I go in the directory 21drive
and I do make
it puts :
mpif90 -DHAVE_CONFIG_H -I. -I../../../src/21drive -I../.. -I../defs
-I../../../src/21drive/../defs
-I/cea/S/dsku/antares/hal1/home/materio/materio/Contribs/include/i686 -O0
-O3 -extend_source -c -o afterscfloop.o ../../../src/21drive/afterscfloop.F90


The compiler says :
ifort : Command line warning overriding -O0 with -O3

So I can't put a specific option per directory .
How can I do if it's possible ?


I give in attachment all options of the compilation

Thanks for your help




#
# Generic config file for ABINIT (documented template)
#
# After editing this file to suit your needs, you may save it as
# "~/.abinit/build/<hostname>.ac" to save these parameters as per-user
# defaults. Just replace "<hostname>" by the name of your machine,
# excluding the domain name.
#
# Example: if your machine is called "myhost.mydomain", you will save
# this file as "~/.abinit/build/myhost.ac".
#
# You may put this file at the top level of an ABINIT source tree as well,
# in which case its definitions will apply to this particular tree only.
#
# Hint: If you do not know the name of your machine, just type "hostname".
#

#
# IMPORTANT NOTES
#
# 1. It may happen that this file is outdated. In such a case, the best is
# to refer to the command-line options of the "configure" script.
#
# To have a complete list of these options, just type "./configure --help"
# from the top source directory of ABINIT.
#
# 2. Setting CPPFLAGS, CFLAGS, CXXFLAGS, or FCFLAGS manually is not
# recommended and will override any other mechanism involved in
# their configuration. Use at your own risks.
#
# A more gentle way to do is to use the "--with-*-optflags" command-line
# options of the "configure" script. See below for details.
#
# 3. Do not forget to remove the leading "#" on a line when you customize
# an option.
#

#
---------------------------------------------------------------------------- #
# Installation
#
#
---------------------------------------------------------------------------- #

# Select which type of installation will be performed by "make install"
# (default is prefix)
#
# Available methods:
#
# * prefix: use specified prefix
# * debian: use Debian rules
# * rpm : use Redhat/Fedora/Mandriva rules
#
# Note: the default is fine for most installations
#
#with_install_type="prefix"

# Where to install ABINIT (default is /opt for the "prefix" method)
#prefix="${HOME}/abinit"

#
---------------------------------------------------------------------------- #
# Preprocessing
#
#
---------------------------------------------------------------------------- #
enable_tricks="no"
enable_parallel="yes"

# C preprocessor (should not be set in most cases)
CPP="cpp"

# Set preprocessing options (overrides auto-detection)
# Use with care!
#with_cppflags=""
with_mpi_cppflags="-DMPI -DHAVE_NETCDF"

#
---------------------------------------------------------------------------- #
# C support
#
#
---------------------------------------------------------------------------- #

# C compiler
CC="icc"

# Set optimizations for C source files (overrides auto-detection)
with_c_optflags="-O3"

# Add link flags for C binaries (default is unset)
#with_c_ldflags=""

#
---------------------------------------------------------------------------- #
# C++ support
#
#
---------------------------------------------------------------------------- #

# C++ compiler
CXX="icpc"

# Set optimizations for C++ source files (overrides auto-detection)
with_cxx_optflags="-O3"

# Add link flags for C++ binaries (default is unset)
#with_cxx_ldflags=""

#
---------------------------------------------------------------------------- #
# Fortran support
#
#
---------------------------------------------------------------------------- #

# Fortran compiler
FC="mpif90"
FCFLAGS="-O3 -extend_source"

# Set optimizations for Fortran source files (overrides auto-detection)
with_fortran_optflags="-O3"
fcflags_opt_21drive="-O0"

# Add link flags for Fortran binaries (default is unset)
with_fortran_ldflags=" "


# Set per-directory Fortran optimizations (useful when a Fortran compiler
# crashes during the build)
# Note: this option is not available through the command line
#fcflags_opt_11drive="-O0"
#Attention ne pas utiliser l'optimiseur -O3 sur rhohxc_coll.o dans 03xc

#
---------------------------------------------------------------------------- #
# MPI support
#
#
---------------------------------------------------------------------------- #

# Determine whether to build parallel code (default is unset)
# * enable_mpi unset : let the "configure" script decide
# * enable_mpi=yes : force build of parallel code
# * enable_mpi=no : disable MPI support
enable_mpi="yes"

# Look for the MPI library in <prefix>/lib (default is unset)
# This is required for MPI support if your Fortran compiler has no native
# MPI support
#with_mpi_prefix="/usr/local/mpi-intel"

#
# If your MPI installation is not detected, you may set the following
# variables manually (please make sure that "enable_mpi" is set to "yes")
#

# Set MPI C preprocessor (default is unset)
#with_mpi_fc="/usr/local/bin/mpicpp"

# Set MPI-specific preprocessing flags (default is unset)
#with_mpi_cppflags=""

# Set MPI C compiler (default is unset)
with_mpi_cc="mpicc"

# Set MPI-specific C compile flags (default is unset)
#with_mpi_cflags=""

# Set MPI-specific C link flags (default is unset)
#with_mpi_c_ldflags="-lmpi"

# Set MPI C++ compiler (default is unset)
#with_mpi_cxx="/usr/local/bin/mpic++"

# Set MPI-specific C++ compile flags (default is unset)
#with_mpi_cxxflags=""

# Set MPI-specific C++ link flags (default is unset)
with_mpi_cxx_ldflags="-lrt"

# Set MPI Fortran 90 compiler (default is unset)
with_mpi_fc="mpif90"

# Set MPI Fortran 90 compiler (default is unset)
with_mpi_fc_ldflags=""
# Set MPI-specific Fortran compile flags (default is unset)
with_mpi_fcflags="-lrt"

# Set MPI-specific Fortran link flags (default is unset)
with_mpi_fortran_ldflags=" "

# Set MPI Runner for tests
with_mpi_run="cea_mprun"

#
---------------------------------------------------------------------------- #
# External libraries
#
#
---------------------------------------------------------------------------- #

# Whether to look for external libraries, in order to save build time
# (default is yes)
enable_library_search="yes"

# Look for the BLAS library in <prefix>/lib (default is unset)
#with_blas_prefix="/usr"

# Look for the LAPACK library in <prefix>/lib (default is unset)
#with_lapack_prefix="/usr/"
#Remplace lapack et blas
with_linalg_ldflags="-L/usr/lib/ -llapack -L/usr/lib -lblas"

# Whether to enable NetCDF support (default is no)
enable_netcdf="yes"

# Look for the NetCDF library in <prefix>/lib (default is unset)
#with_netcdf_prefix="/usr/"
with_netcdf_include="-I/cea/S/dsku/antares/hal1/home/materio/materio/Contribs/include/i686"
with_netcdf_ldflags="-L/cea/S/dsku/antares/hal1/home/materio/materio/Contribs/lib/i686/
-lnetcdf"


# Whether to enable Nanoquanta XC library support (default is no)
enable_nqxc="no"

# Look for the Nanoquanta XC library in <prefix>/lib (default is unset)
#with_nqxc_prefix="/usr/local/lib/nqxc"

# Whether to enable XMLF90 library support (default is no)
#enable_xmlf90="yes"

# Look for the XMLF90 library in <prefix>/lib (default is unset)
#with_xmlf90_prefix="/usr/local/lib/xmlf90"

#
---------------------------------------------------------------------------- #
# Developer options
#
#
---------------------------------------------------------------------------- #

# Enable debug mode
#enable_debug="yes"

#
---------------------------------------------------------------------------- #
# Maintainer options
#
#
---------------------------------------------------------------------------- #

# The following option will make sure that all libraries are built internally
force_build_libs="no"

# Enable dependency tracking
# Though the exact outcome of this is not known at present, you may
# turn it on if you have a taste for adventure
#enable_dependency_tracking="yes"



Archive powered by MHonArc 2.6.16.

Top of Page