# -*- INI -*-
#
# Copyright (C) 2012-2014 ABINIT Group (Yann Pouillon)
#
# This file is part of the ABINIT software package. For license information,
# please see the COPYING file in the top-level directory of the ABINIT source
# distribution.
#

#
# Config file to generate example build config files for ABINIT
#
# Note: The following statements are in the Python "INI" format, with
#       case-sensitivity activated.
#

#
# File format:
#
#   * each section is the name assigned to a computer;
#   * the contents of each section are valid options of the build system
#     (see options.conf for details);
#   * the 'status' option tells whether the config file has been
#     validated and certified by a maintainer of Abinit.
#

# WARNING: modify the defaults with *extreme* care!
[DEFAULT]
status = uncertified
enable_clib = yes
enable_maintainer_checks = no
enable_memory_profiling = no
enable_openmp = no
with_linalg_flavor = none

[alphaev67-compaq_deccint]
CC = cc
CXX = cxx
FC = f95
enable_mpi = yes
with_trio_flavor = none
enable_optim = yes 
FC_LDFLAGS_EXTRA = -pthread
#FCFLAGS_EXTRA = -O3 -arch host -tune host
with_mpi_libs = -lmpi -lrt
MPI_RUNNER = /usr/bin/dmpirun

[amd-g95-mpich_chum]
enable_64bit_flags = yes
enable_mpi = yes
enable_optim = yes 
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/mpich-g95

[amd-g95-openmpi_chum]
enable_64bit_flags = yes
enable_mpi = yes
enable_optim = yes 
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/openmpi-g95

[amd-gfortran4.3_chum]
#CPP = /usr/local/gcc43/bin/cpp
enable_mpi = yes
enable_optim = yes 
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/openmpi-gcc43

[amd-intel10.1_chum]
enable_mpi = yes
enable_optim = yes
FC_LDFLAGS_EXTRA = -shared-libcxa -i-dynamic
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/openmpi-intel_10

[amd-intel9.1_chum]
enable_mpi = yes
enable_optim = yes
FC_LDFLAGS_EXTRA = -shared-libcxa -i-dynamic
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/openmpi-intel

[amd-open64_chum]
enable_64bit_flags = yes
with_dft_flavor = libxc+wannier90
enable_debug = no
enable_mpi = yes
with_mpi_prefix = /usr/local/openmpi-open64

[amd-pgi7.2_chum]
enable_64bit_flags = yes
with_dft_flavor = none
with_trio_flavor = netcdf
enable_mpi = yes
enable_optim = yes
#FC_LDFLAGS_EXTRA = -O2
#FCFLAGS_EXTRA = -O2
with_mpi_prefix = /usr/local/openmpi-pgi

[amd-sunstudio12_chum]
enable_64bit_flags = yes
with_dft_flavor = libxc
enable_mpi = yes
with_mpi_prefix = /usr/local/mpich2-sun

[fujitsu-fujitsu_eliza]
enable_mpi = yes
with_trio_flavor = none
FC_LIBS_EXTRA = -lssl2vp
with_mpi_prefix = /usr/lang/mpi2

[i686-gfortran_mac]
#CPP = /opt/local/bin/cpp
enable_64bit_flags = yes
enable_mpi = yes
with_mpi_prefix = /usr/local/mpich

[ia64-open64_chpit]
enable_mpi = yes
with_mpi_prefix = /usr/local/mpich_open64

[ia64-open64_chpit_woMPI]
CC = opencc
FC = openf90
enable_mpi = no

[macosx-gfortran_gandalf]
CC = gcc
CXX = gcc
FC = /usr/local/bin/gfortran
enable_mpi = no
with_trio_flavor = none

[macosx-gfortran_rafael]
CC = /usr/bin/gcc
CXX = /usr/bin/gcc
FC = /opt/local/bin/gfortran-mp-4.3
enable_mpi = no
with_trio_flavor = none

[mips-mipspro_spinoza]
CC = gcc
CXX = g++
FC = f90
enable_mpi = yes
with_trio_flavor = none
enable_optim = yes
FCFLAGS = -mips4 -O3 -OPT:Olimit=7168
with_mpi_libs = -lmpi

[opteron-intel9.1_lemaitre]
enable_mpi = yes
with_trio_flavor = none
with_mpi_prefix = /usr/local/mpich-1.2.6-eth-intel9.1

[powerpc-ibm_datastar]
CC = mpcc_r
CXX = mpCC_r
FC = mpxlf90_r
enable_mpi = yes
with_trio_flavor = none
enable_optim = yes
FCFLAGS = -O3 -q64 -qarch=pwr4 -qstrict -qtune=pwr4

[powerpc-ibm_dirac]
CC = /usr/vac/bin/xlc
CPP = /usr/ccs/lib/cpp
CXX = /usr/vacpp/bin/xlC
FC = xlf95
enable_mpi = yes
with_trio_flavor = none
enable_optim = yes
CFLAGS = -O3 -q64 -qstrict
#FCFLAGS_EXTRA = -O3 -bmaxdata:2700000000 -qarch=auto -qtune=auto -qstrict -qsuppress=1520-003 -qspill=2000 -qcharlen=16000 -bloadmap:loadmap
with_mpi_incs = -I/usr/lpp/ppe.poe/include 
with_mpi_libs = -lmpi -lppe

[powerpc-ibm_generic]
enable_64bit_flags = yes
enable_mpi = yes
with_trio_flavor = none
with_mpi_prefix = /usr/lpp/ppe.poe

[powerpc-ibm_max]
enable_mpi = yes
with_trio_flavor = none
fcflags_opt_77_ddb = -O0
fcflags_opt_98_main = -O0
with_mpi_prefix = /usr/local/mpich-1.2.7

[powerpc64-ibm_fock]
enable_64bit_flags = yes
enable_mpi = yes
fcflags_opt_etsf_io = -O0
with_mpi_prefix = /usr/local/openmpi

[mips-mipspro_cuda]
CC = gcc
CXX = g++
FC = f90
NVCC = /usr/local/cuda/bin/nvcc
NVCC_CFLAGS = -arch sm_13 --use_fast_math --compiler-options -O3,-Wall,-fPIC,-g  -I/usr/cuda/sdk/common/inc  -I/usr/local/cuda/include  -I${PWDloc}/../src/incs
enable_mpi = yes
enable_optim = yes
with_trio_flavor = none
enable_gpu = yes
with_gpu_flavor = cuda-single
#FCFLAGS_EXTRA = -O2
FC_LDFLAGS_EXTRA = -shared-libcxa -i-dynamic
with_gpu_incs = -I/usr/local/cuda/include -I/usr/cuda/sdk/common/inc
with_gpu_libs = -L/usr/local/cuda/lib -lcufft -lcudart -lcublas

[opteron-intel11.1_hmem]
#with_tardir="/home/ucl/naps/ajacques/Downloads"
#prefix="/home/ucl/naps/ajacques/Applications/abinit-6.7.2"
enable_64bit_flags="yes"
enable_mpi="yes"
enable_debug="no"
with_mpi_prefix=/usr/local/openmpi/1.4.3-intel
with_fft_flavor="fftw3"
with_fft_libs="-L/usr/local/intel/Compiler/11.1/073/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread"
with_linalg_flavor="mkl"
with_linalg_libs="-L/usr/local/intel/Compiler/11.1/073/mkl/lib/em64t -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lpthread"
enable_gw_dpc="yes"
AR=xiar
CFLAGS="-O3 -funroll-loops"
CXXFLAGS="-O3 -funroll-loops"
FCFLAGS="-O3 -funroll-loops"

[opteron-gfortran4.6_hmem]
enable_64bit_flags="yes"
enable_mpi="yes"
enable_debug="no"
with_mpi_prefix=/home/ucl/naps/ajacques/local
with_fft_flavor="fftw3"
with_fft_libs="-L/home/ucl/naps/ajacques/local/lib -lfftw3"
with_linalg_flavor="custom"
with_linalg_libs="-L/home/ucl/naps/ajacques/local/acml4.4.0/gfortran64/lib -lacml -lacml_mv"
enable_gw_dpc="yes"

# ex-woopy_gcc47 
[bb_intel-mingw]
AR = /usr/bin/w64_ar.exe
RANLIB = /usr/bin/w64_ranlib.exe
LD = /usr/bin/w64_ld.exe
NM = /usr/bin/w64_nm.exe
FCFLAGS_EXTRA = -static
CFLAGS_EXTRA = -static
with_dft_flavor = atompaw+bigdft+libxc+wannier90
enable_gw_dpc = yes
enable_mpi = yes
enable_clib = no
with_mpi_prefix = /usr/local/mpich2
enable_mpi_io = no
with_mpi_level = 1
#with_mpi_includes= -I/cygdrive/c/mpich2/include
#with_mpi_libs = -L/cygdrive/c/mpich2/lib -lfmpich2g -lmpi
#MPI_RUNNER = /cygdrive/c/mpich2/bin/mpiexec
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/lib -llapack -lblas
with_netcdf_incs = -I/usr/local/netcdf/include
with_netcdf_libs = -L/usr/local/netcdf/lib -lnetcdf
with_atompaw_bins = /usr/local/atompaw/bin
with_atompaw_incs = -I/usr/local/atompaw/include
with_atompaw_libs = -L/usr/local/atompaw/lib -latompaw
#with_libxc_incs = -I/usr/local/libxc/include
#with_libxc_libs = -L/usr/local/libxc/lib -lxc
with_libxc_incs = -I/usr/local/libxc_2.0.2/include
with_libxc_libs = -L/usr/local/libxc_2.0.2/lib -lxc
#with_bigdft_incs = -I/usr/local/bigdft_abi/include
#with_bigdft_libs = -L/usr/local/bigdft_abi/lib -lbigdft -ldft_common -labinit
with_bigdft_incs = -I/usr/local/bigdft_abi-1.0.4p6/include
with_bigdft_libs = -L/usr/local/bigdft_abi-1.0.4p6/lib -lbigdft -ldft_common -labinit
with_etsf_io_incs = -I/usr/local/etsf_io/include
with_etsf_io_libs = -L/usr/local/etsf_io/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_wannier90_bins = /usr/local/wannier90/bin
with_wannier90_incs = -I/usr/local/wannier90/include
with_wannier90_libs = -L/usr/local/wannier90/lib -lwannier
# for compatibility of binary for AMD : removed "-mtune=native -march=native"
FCFLAGS = -mfpmath=sse -msse2 -O2 -ffree-line-length-none -Wstrict-aliasing=2 -static
CFLAGS = -mfpmath=sse -msse2 -O2 -Wstrict-aliasing=2 -static
CXXFLAGS = -mfpmath=sse -msse2 -O2 -Wstrict-aliasing=2 -static
enable_debug = no
status = certified
#
#
