# -*- INI -*-
#
# Copyright (C) 2009-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 build config files for the ABINIT test farm
#
# Note: The following statements are in the Python "INI" format, with
#       case-sensitivity activated.
#

#
# File format:
#
#   * each section is the name assigned to a Buildbot slave;
#   * 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 = certified
enable_clib = yes
enable_maintainer_checks = no
enable_memory_profiling = no
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_linalg_flavor = none
with_trio_flavor = etsf_io+netcdf

###########################################################
#      NIGHTLY BUILDERS
###########################################################

# testf
[bb_xeon-gfortran4.7_testf]
CPPFLAGS_EXTRA= -DHAVE_TEST_TIME_PARTITIONING
enable_gw_dpc = yes
with_trio_flavor = netcdf+etsf_io+fox
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_gcc47
status = certified

[bb_xeon-gfortran4.7_testf_woMPI]
CC = /usr/local/gcc47/bin/gcc
FC = /usr/local/gcc47/bin/gfortran
enable_gw_dpc = yes
with_trio_flavor = netcdf+etsf_io+fox
enable_mpi = no
status = certified

#bigmac
[bb_intel-gfortran4.8_bigmac_macports]
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /opt/local
#
with_trio_flavor = netcdf+etsf_io
with_etsf_io_incs = -I/opt/local/include/gcc
with_netcdf_incs = -I/opt/local/include
with_netcdf_libs = -L/opt/local/lib -lnetcdf -lnetcdff
#
with_linalg_flavor = atlas+scalapack
# 2 lines below needed
with_linalg_incs = -I/opt/local/include
with_linalg_libs = -L/opt/local/lib -lscalapack -llapack -lf77blas -lcblas -latlas
with_fft_flavor = fftw3
with_fft_libs = -L/opt/local/lib -lfftw3 -lfftw3f
with_dft_flavor = libxc+wannier90
with_libxc_incs = -I/opt/local/include
# line below needed
with_libxc_libs = -L/opt/local/lib -lxc
status = certified

# buda
[bb_xeon-gfortran4.6_buda_cuda]
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_gcc46
with_dft_flavor = none
with_trio_flavor = none
enable_gw_dpc = yes
#
with_linalg_flavor = mkl+magma
with_linalg_incs = -I${MAGMA_ROOT}/include -I${MKLROOT}/include
with_linalg_libs = -L${MAGMA_ROOT}/lib -Wl,--start-group -lmagma -lmagmablas -lcuda -Wl,--end-group -L${MKLROOT} -lmkl_scalapack_lp64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_openmpi_lp64 -lpthread -lm
#
enable_gpu = yes
with_gpu_flavor = cuda-double
NVCC_CFLAGS = -O3 -arch=sm_13 -Xptxas=-v --use_fast_math --compiler-options -O3,-fPIC
#
FC_LDFLAGS_EXTRA = -Wl,-z,muldefs
status = certified

[bb_xeon-intel14_buda]
CPP = icc -E
enable_gw_dpc = yes
enable_mpi = yes
enable_optim = aggressive
with_mpi_prefix = /usr/local/mpich3_ifort
enable_mpi_io = yes
with_dft_flavor = libxc
with_trio_flavor = netcdf+etsf_io
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# coba2 ( intel 13.1.3 )
[bb_xeon-intel13_coba2]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_intel13
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# cronos (gcc46_paral)
[bb_amd-gfortran4.6_cronos]
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi
with_fft_flavor= fftw3
with_fft_libs= -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor= mkl
with_linalg_libs= -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_trio_flavor = netcdf+etsf_io+fox
status = certified

# green ( SL 5.3 + packages gcc481/openmpi163 )
[bb_xeon-gfortran4.8_green]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_gcc48
with_dft_flavor = atompaw+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fox_incs = -I/home/naps/buildbot/lib64/FoX412/include
with_fox_libs = -L/home/naps/buildbot/lib64/FoX412/lib -lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common
with_linalg_flavor = netlib
with_linalg_incs = -I/home/naps/buildbot/lib64/netlib/include
with_linalg_libs = -L/home/naps/buildbot/lib64/netlib -llapack -lblas
status = certified

[bb_xeon-intel12.1_green]
CC = icc
CXX = icpc
FC = ifort
enable_gw_dpc = yes
enable_mpi = no
with_dft_flavor = none
with_fft_flavor = fftw3
with_fft_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# ibm6
[bb_power6-xlf_ibm6]
CC =  /usr/lpp/ppe.poe/bin/mpcc_r
CXX = /usr/lpp/ppe.poe/bin/mpCC_r
FC = /usr/lpp/ppe.poe/bin/mpxlf90_r
CPP = /usr/lpp/xlf/bin/cpp
AR = ar
ARFLAGS_EXTRA = -X64
enable_64bit_flags = yes
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/lib64/linalg -llapack -lblas
with_netcdf_libs = -L/usr/local/netcdf/lib -lnetcdf
with_netcdf_incs = -I/usr/local/netcdf/include
with_bigdft_incs = -I/usr/local/bigdft_1.7/include
with_bigdft_libs = -L/usr/local/bigdft_1.7/lib -lbigdft -ldft_common -labinit
with_trio_flavor = netcdf+etsf_io+fox
with_dft_flavor = atompaw+libxc+wannier90
#fcflags_opt_63_bader = -O3 -q64 -bmaxdata:2000000000 -qarch=pwr6 -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto
enable_fc_wrapper = no
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
MPI_RUNNER = /usr/lpp/ppe.poe/bin/poe
enable_optim = yes
CFLAGS = -qlanglvl=extc99 -O2 -q64 -qspill=2000 -qarch=pwr6 -qtune=auto -qcache=auto -qstrict -qsuppress=1520-031:1520-003
FCFLAGS = -g -O2 -q64 -lxlopt -bmaxdata:2000000000 -qarch=pwr6 -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto -qspillsize=1664
#FCFLAGS = -O2  -g4 -q64 -lxlopt -bmaxdata:2000000000 -qarch=pwr6 -qtune=auto -qstrict -qsuppress=1520-031:1520-003 -qmaxmem=-1 -qcache=auto -qspillsize=1664
status = certified

# inca
[bb_intel-gfortran4.4_inca_sdebug]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich2
with_trio_flavor = netcdf+etsf_io+fox
with_linalg_flavor = atlas
with_linalg_libs = -L/usr/local/atlas/lib -llapack -lf77blas -lcblas -latlas
enable_maintainer_checks = yes
#enable_optim = yes
FCFLAGS = -pg -g -Wall -pedantic -march=native -mtune=native -funroll-loops -O2 -Wstrict-aliasing=2 -fgcse-sm -ftree-vectorize -ffree-line-length-none -ffixed-line-length-none -fbounds-check
status = certified

[bb_intel-gfortran4.4_inca2_sdebug]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich3
with_trio_flavor = netcdf+etsf_io+fox
with_linalg_flavor = atlas
with_linalg_libs = -L/usr/local/atlas/lib -llapack -lf77blas -lcblas -latlas
enable_maintainer_checks = yes
FCFLAGS = -pg -g -Wall -pedantic -march=native -mtune=native -funroll-loops -O2 -Wstrict-aliasing=2 -fgcse-sm -ftree-vectorize -ffree-line-length-none -ffixed-line-length-none -fbounds-check
status = certified

# ktulu (  ubuntu + deb packages )
[bb_intel-gfortran4.8_ktulu]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_mpi_prefix = /usr
with_linalg_flavor = atlas
with_linalg_libs = -L/usr/lib -llapack -lf77blas -lcblas -latlas
with_fft_flavor = fftw3
with_fft_incs = -I/usr/include/
with_fft_libs = -L/usr/lib/x86_64-linux-gnu -lfftw3 -lfftw3f
#with_etsf_io_incs= -I/usr/include
#with_etsf_io_libs= -L/usr/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs = -I/usr/include
with_netcdf_libs = -L/usr/lib -lnetcdf -lnetcdff
status = certified

# max2
[bb_amd-gfortran4.6_max2]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich2
with_trio_flavor = netcdf+etsf_io+fox
with_linalg_flavor = custom
with_linalg_libs = -L/opt/acml4.4.0/gfortran64/lib -lacml -lacml_mv
enable_memory_profiling = yes
status = certified

# petrus ( NAG )
[bb_intel-nag_petrus]
enable_fc_wrapper = yes
FPPFLAGS = -P -traditional-cpp
FCFLAGS_EXTRA = -g -L/usr/local/nag/lib
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_nag
with_trio_flavor = none
with_dft_flavor = none
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/fallbacks_nag/lib -llapack -lblas
with_fft_flavor = fftw3
with_fft_incs = -I/usr/include/
with_fft_libs = -L/usr/lib64 -lfftw3 -lfftw3f
#with_fft_flavor = fftw3
#with_fft_libs= -L/opt/intel/composerxe/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_core -lmkl_sequential -lpthread -lm
#with_linalg_flavor = mkl
#with_linalg_libs = -L/opt/intel/composerxe/mkl/lib/intel64 -lmkl_gf_lp64 -lmkl_core -lmkl_sequential -lpthread -lm
enable_gw_dpc = yes
status = certified

# shiva
[bb_intel-gfortran4.5_shiva_distchk]
CPP = /usr/local/gcc45/bin/cpp
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_trio_flavor = netcdf+etsf_io+fox
with_mpi_prefix = /usr/local/mpich2_gcc45
with_netcdf_libs = -L/usr/local/netcdf/lib -lnetcdf
with_netcdf_incs = -I/usr/local/netcdf/include
with_linalg_flavor = custom
#with_linalg_libs = -L/usr/local/lib64 -lgoto2
with_linalg_libs = -L/usr/local/OpenBLAS/lib -lopenblas
FC_LDFLAGS_EXTRA = -static-libgcc -static-libgfortran
status = certified

# tikal
[bb_xeon-intel12_tikal_serial]
FC = ifort
CC = icc
CXX = icpc
enable_gw_dpc = yes
enable_mpi = no
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composer_xe_2011_sp1/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composer_xe_2011_sp1/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

[bb_xeon-gcc49_tikal]
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich3_gcc49
enable_gw_dpc = yes

with_trio_flavor = netcdf+etsf_io
with_etsf_io_incs = -I/usr/local/fallbacks_gcc49/include
with_etsf_io_libs = -L/usr/local/fallbacks_gcc49/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs = -I/usr/local/fallbacks_gcc49/include
with_netcdf_libs = -L/usr/local/fallbacks_gcc49/lib -lnetcdf

with_dft_flavor = atompaw+libxc+wannier90
with_atompaw_bins = /usr/local/fallbacks_gcc49/bin
with_atompaw_incs = -I/usr/local/fallbacks_gcc49/include
with_atompaw_libs = -L/usr/local/fallbacks_gcc49/lib -latompaw
with_libxc_incs = -I/usr/local/fallbacks_gcc49/include
with_libxc_libs = -L/usr/local/fallbacks_gcc49/lib -lxc
with_wannier90_bins = /usr/local/fallbacks_gcc49/bin
with_wannier90_incs = -I/usr/local/fallbacks_gcc49/include
with_wannier90_libs = -L/usr/local/fallbacks_gcc49/lib -lwannier90

with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group

FCFLAGS_EXTRA = -O2 -g  -Wall  -ffpe-trap=invalid,zero,overflow -fbacktrace -pedantic -fcheck=all 
status = certified

# toum
[bb_intel-gfortran4.6_toum_openmp]
enable_mpi = no
enable_mpi_io = no
with_dft_flavor = none
FC_LDFLAGS_EXTRA = -fopenmp
FCFLAGS_EXTRA = -fopenmp
enable_openmp = yes
status = certified

# vishnu
[bb_amd-gfortran4.7_vishnu]
with_dft_flavor = none
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi
#enable_maintainer_checks = yes
status = certified

[bb_amd-gfortran4.7_vishnu_misc]
CC = /usr/local/gcc47/bin/gcc
CPP = /usr/local/gcc47/bin/cpp
FC = /usr/local/gcc47/bin/gfortran
enable_mpi = no
enable_mpi_io = no
enable_optim = no
with_dft_flavor = none
with_trio_flavor = none
enable_64bit_flags = no
enable_cclock = no
enable_clib = no
enable_debug = enhanced
enable_exports = no
enable_fc_wrapper = no
enable_gw_dpc = no
enable_macroave = no
enable_stdin = no
enable_openmp = no
status = certified

# woopy_gcc48
[bb_intel-cygwin64]
enable_mpi= yes 
with_mpi_prefix= /usr/local/mpich_gcc 
enable_mpi_io= yes 
with_trio_flavor= etsf_io+netcdf+fox 
with_etsf_io_incs= -I/usr/local/fallbacks-dev/include 
with_etsf_io_libs= -L/usr/local/fallbacks-dev/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/include
with_netcdf_libs= -L/usr/lib -lnetcdff -lnetcdf
with_fox_incs = -I/usr/local/fallbacks-dev/include
with_fox_libs = -L/usr/local/fallbacks-dev/lib -lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common
with_linalg_flavor= netlib
with_linalg_incs= -I/usr/include
with_linalg_libs= -L/usr/lib -llapack -lblas
with_dft_flavor= atompaw+bigdft+libxc+wannier90
with_atompaw_bins= /usr/local/fallbacks-dev/bin
with_atompaw_incs= -I/usr/local/fallbacks-dev/include
with_atompaw_libs= -L/usr/local/fallbacks-dev/lib -latompaw
with_bigdft_incs= -I/usr/local/bigdft/include
with_bigdft_libs= -L/usr/local/bigdft/lib -lbigdft-1 -labinit -lyaml
with_libxc_incs= -I/usr/local/fallbacks-dev/include
with_libxc_libs= -L/usr/local/fallbacks-dev/lib -lxc
with_wannier90_bins= /usr/local/fallbacks-dev/bin
with_wannier90_incs= -I/usr/local/fallbacks-dev/include
with_wannier90_libs= -L/usr/local/fallbacks-dev/lib -lwannier90
#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_gw_dpc= yes
enable_debug= no
status = certified

# yquem ( CentOS 6.5 + compilo g95 0.94 )
[bb_intel-g95_yquem]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_g95
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
#enable_debug = basic
#enable_optim = safe
status = certified


###########################################################
#     ON_DEMAND ONLY BUILDERS
###########################################################

# coverage
[bb_xeon-gcc49_tikal_cov]
FCFLAGS_EXTRA = -O2 -g -fprofile-arcs -ftest-coverage
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich3_gcc49
enable_gw_dpc = yes

with_trio_flavor = netcdf+etsf_io+fox
with_etsf_io_incs = -I/usr/local/fallbacks_gcc49/include
with_etsf_io_libs = -L/usr/local/fallbacks_gcc49/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs = -I/usr/local/fallbacks_gcc49/include
with_netcdf_libs = -L/usr/local/fallbacks_gcc49/lib -lnetcdf
with_fox_incs = -I/usr/local/fallbacks_gcc49/include
with_fox_libs = -L/usr/local/fallbacks_gcc49/lib -lFoX_sax -lFoX_utils -lFoX_fsys -lFoX_common

with_dft_flavor = atompaw+libxc+wannier90+bigdft
with_atompaw_bins = /usr/local/fallbacks_gcc49/bin
with_atompaw_incs = -I/usr/local/fallbacks_gcc49/include
with_atompaw_libs = -L/usr/local/fallbacks_gcc49/lib -latompaw
with_libxc_incs = -I/usr/local/fallbacks_gcc49/include
with_libxc_libs = -L/usr/local/fallbacks_gcc49/lib -lxc
with_wannier90_bins = /usr/local/fallbacks_gcc49/bin
with_wannier90_incs = -I/usr/local/fallbacks_gcc49/include
with_wannier90_libs = -L/usr/local/fallbacks_gcc49/lib -lwannier90
with_bigdft_incs= -I/usr/local/fallbacks_gcc49/include
with_bigdft_libs= -L/usr/local/fallbacks_gcc49/lib -lbigdft-1 -labinit -lyaml

with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# petrus ( NAG )
[bb_intel-nag_petrus_serial]
CC = gcc
FC = nagfor
F77 = nagfor
enable_fc_wrapper = yes
FPPFLAGS = -P -traditional-cpp
FCFLAGS_EXTRA = -g -L/usr/local/nag/lib
enable_mpi = no
with_trio_flavor = netcdf+etsf_io
with_dft_flavor = libxc
with_etsf_io_incs= -I/usr/local/fallbacks_nag/include
with_etsf_io_libs= -L/usr/local/fallbacks_nag/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/fallbacks_nag/include
with_netcdf_libs= -L/usr/local/fallbacks_nag/lib -lnetcdf
with_libxc_incs= -I/usr/local/fallbacks_nag/include
with_libxc_libs= -L/usr/local/fallbacks_nag/lib -lxc
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/fallbacks_nag/lib -llapack -lblas
enable_gw_dpc = yes
status = certified

# petrus (  openSUSE + packages )
[bb_intel-gfortran4.6_petrus]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_mpi_prefix = /usr/lib64/mpi/gcc/openmpi
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/lib64 -llapack -lblas
with_fft_flavor = fftw3
with_fft_incs = -I/usr/include
with_fft_libs = -L/usr/lib64 -lfftw3 -lfftw3f
with_netcdf_incs = -I/usr/include
with_netcdf_libs = -L/usr/lib64 -lnetcdf -lnetcdff
status = certified

# reference builder for on_demand service ( world access )
[bb_xeon-gfortran4.7_buda]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_gcc47
with_trio_flavor = netcdf+etsf_io+fox
status = certified

#start section of BUDA
[bb_xeon-gfortran4.5_buda_checks]
CC = /usr/local/gcc45/bin/gcc
FC = /usr/local/gcc45/bin/gfortran
enable_gpu = no
enable_mpi = no
enable_maintainer_checks = yes
#enable_memory_profiling = yes
status = certified

# quick builder to test abirules for on_demand service ( world access )
[bb_xeon-gfortran4.4_buda_abi]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
#with_mpi_prefix = /usr/local/openmpi_gcc
with_mpi_prefix = /usr/local/mpich2_gcc44
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/liblinalg -llapack -lblas
with_trio_flavor = netcdf+etsf_io+fox
enable_maintainer_checks = yes
#enable_memory_profiling = yes
FCFLAGS = -pg -g -Wall -pedantic -march=native -mtune=native -funroll-loops -O2 -Wstrict-aliasing=2 -fgcse-sm -ftree-vectorize -ffree-line-length-none -ffixed-line-length-none -fbounds-check
status = certified

# to create binaries for green computer (UCL)
[bb_xeon-intel11_green]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_mpi_prefix = /home/naps/buildbot/openmpi_intel
with_fft_flavor = fftw3
#with_fft_incs = -I/home/naps/buildbot/fftw3/include
#with_fft_libs = -L/home/naps/buildbot/fftw3/lib -lfftw3 -lfftw3f
#with_fft_libs = -L/home/naps/buildbot/fftw3/lib -lfftw3_mpi -lfftw3_omp -lfftw3 -lfftw3f
with_fft_libs = -L/usr/local/intel/Compiler/11.1/current/mkl/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread
with_linalg_flavor = mkl
with_linalg_libs = -L/usr/local/intel/Compiler/11.1/current/mkl/lib/em64t -Wl,--start-group -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread
status = certified

[bb_xeon-intel12_green_prod]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_mpi_prefix = /home/naps/buildbot/openmpi_intel
with_fft_flavor = fftw3
with_fft_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# milou ( for manneback )
[bb_amd-intel12_milou_manneback_prod]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_mpi_prefix = /usr/local/openmpi_intel12
with_fft_flavor = fftw3
with_fft_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
FCFLAGS_EXTRA = -O3
status = certified

[bb_amd-intel12.1_milou]
CC = icc
CXX = icpc
FC = ifort
enable_gw_dpc = yes
enable_mpi = no
with_dft_flavor = none
with_fft_flavor = fftw3
with_fft_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/usr/local/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

###########################################################
#     ON_DEMAND BUILDERS
###########################################################

# yquem ( CentOS 6.4 + packages gcc472/openmpi163 + compil de fftw3-mpi + vdwxc + GSL 1.15)
[bb_intel-gfortran4.7_yquem_openmp]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
enable_openmp = yes
with_mpi_prefix = /usr/local/openmpi
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fft_flavor = fftw3-mpi
with_fft_incs = -I/usr/local/fftw3/include
with_fft_libs = -L/usr/local/fftw3/lib -lfftw3_mpi -lfftw3_omp -lfftw3 -lfftw3f
with_linalg_flavor = netlib
with_linalg_incs = -I/usr/local/include
with_linalg_libs = -L/usr/local/lib64 -llapack -lblas
with_math_flavor = gsl
with_math_incs = -I/usr/local/gsl/include
with_math_libs = -L/usr/local/gsl/lib -lgslcblas -lgsl
status = testing

# yquem ( CentOS 6.4 + packages gcc472/openmpi163 + compil de fftw3-mpi )
[bb_intel-gfortran4.7_yquem]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
enable_openmp = yes
with_mpi_prefix = /usr/local/openmpi
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_linalg_flavor = netlib
with_linalg_incs = -I/usr/local/include
with_linalg_libs = -L/usr/local/lib64 -llapack -lblas
with_fft_flavor = fftw3-mpi
with_fft_incs = -I/usr/local/fftw3/include/
with_fft_libs = -L/usr/local/fftw3/lib -lfftw3_mpi -lfftw3_omp -lfftw3 -lfftw3f
status = testing

# yquem ( CentOS 6.4 + packages gcc472/mpich303 )
[bb_intel-gfortran4.7_mpich3_yquem]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/mpich3_gcc47
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_linalg_flavor = netlib
with_linalg_incs = -I/usr/local/include
with_linalg_libs = -L/usr/local/lib64 -llapack -lblas
status = testing

# yquem ( CentOS 6.4 + packages gcc480/openmpi163 )
[bb_intel-gfortran4.8_yquem]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_gcc48
# bigdft disabled due to "multiple definition" with lib11_memory_mpi.a(m_profiling.o)
# regression of gcc 4.8.0 ?
#with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_dft_flavor = atompaw+libxc+wannier90
#with_trio_flavor = netcdf+etsf_io+fox
with_trio_flavor = netcdf+etsf_io
with_linalg_flavor = netlib
with_linalg_incs = -I/usr/local/netlib_gcc48/include
with_linalg_libs = -L/usr/local/netlib_gcc48/lib64 -llapack -lblas
status = testing

#tikal
[bb_xeon-psc_tikal]
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/fallbacks_psc/lib -llapack -lblas
with_netcdf_libs = -L/usr/local/fallbacks_psc/lib -lnetcdf
with_netcdf_incs = -I/usr/local/fallbacks_psc/include
enable_debug = no
enable_64bit_flags = yes
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_psc
status = certified

# coba2 ( intel 12.1.4 )
[bb_xeon-intel12_coba2]
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_intel12
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composerxe/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

# coba2 ( intel 13.1.3 + Intel MPI)
[bb_xeon-intel13i_coba2]
CC = mpiicc
CXX = mpicxx
FC = mpiifort
#FCFLAGS_EXTRA = -heap-arrays
#FC_LDFLAGS_EXTRA = -heap-arrays
enable_mpi = yes
enable_mpi_io = yes
#with_mpi_prefix = /opt/intel/impi/4.1.1.036/intel64
with_mpi_incs = -I/opt/intel/impi/4.1.1.036/include64
with_mpi_libs = -L/opt/intel/impi/4.1.1.036/lib64 -lmpi
with_dft_flavor = none
with_trio_flavor = netcdf+etsf_io
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm
enable_64bit_flags = yes
enable_gw_dpc = yes
status = certified

#max2
[bb_amd-open64_max2]
enable_64bit_flags = yes
enable_gw_dpc = yes
enable_debug = no
# problem with 79_seqpar_mpi/lobpcgwf.F90 ( compiler bug )
fcflags_opt_79_seqpar_mpi = -O0 -m64 -align64
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_open64
with_linalg_flavor = custom
with_linalg_libs = -L/opt/acml4.4.0/gfortran64/lib -lacml
#with_dft_flavor = atompaw+libxc+wannier90
status = certified

# littlebuda
[bb_intel-gfortran4.5_littlebuda]
enable_gpu = no
with_gpu_flavor = cuda-single
with_gpu_prefix =/usr/local/cuda
enable_gw_dpc = yes
enable_mpi = yes
enable_mpi_io = yes
with_trio_flavor = netcdf+etsf_io+fox
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_mpi_prefix = /usr/local/mpich2
with_linalg_flavor = atlas
with_linalg_libs = -L/usr/local/atlas/lib -llapack -lf77blas -lcblas -latlas
status = certified

# milou ( Scientific Linux 6,4 )
[bb_amd-gfortran4.8_milou_fpetrap_serial_nofb]
FC=gfortran
CC=gcc
CXX=g++
FCFLAGS_EXTRA = -ffpe-trap=invalid,zero,overflow -finit-real=snan
enable_mpi = no
enable_mpi_io = no
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/lib64 -llapack -lblas
with_dft_flavor = none
with_trio_flavor = etsf_io+netcdf
with_etsf_io_incs= -I/usr/local/fallbacks/include
with_etsf_io_libs= -L/usr/local/fallbacks/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/fallbacks/include
with_netcdf_libs= -L/usr/local/fallbacks/lib -lnetcdf
enable_gw_dpc = yes
enable_64bit_flags = yes
#enable_debug = no
status = testing

[bb_amd-gfortran4.8_milou_fpetrap_nofb]
FCFLAGS_EXTRA = -ffpe-trap=invalid,zero,overflow -finit-real=snan
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/lib64 -llapack -lblas
with_dft_flavor = none
with_trio_flavor = etsf_io+netcdf
with_etsf_io_incs= -I/usr/local/fallbacks/include
with_etsf_io_libs= -L/usr/local/fallbacks/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/fallbacks/include
with_netcdf_libs= -L/usr/local/fallbacks/lib -lnetcdf
enable_gw_dpc = yes
enable_64bit_flags = yes
#enable_debug = no
status = testing

[bb_amd-g95_milou_ftrace_serial_nofb]
FC=g95
CC=gcc
CXX=g++
FCFLAGS_EXTRA = -freal=nan -ftrace=full
enable_mpi = no
enable_mpi_io = no
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/g95/lib -llapack -lblas
with_dft_flavor = none
with_trio_flavor = etsf_io+netcdf
with_etsf_io_incs= -I/usr/local/g95/include
with_etsf_io_libs= -L/usr/local/g95/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/g95/include
with_netcdf_libs= -L/usr/local/g95/lib -lnetcdf
enable_gw_dpc = yes
enable_64bit_flags = yes
#enable_debug = no
status = certified

[bb_amd-g95_milou_ftrace_nofb]
FCFLAGS_EXTRA = -freal=nan -ftrace=full
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_g95
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/g95/lib -llapack -lblas
with_dft_flavor = none
with_trio_flavor = etsf_io+netcdf
with_etsf_io_incs= -I/usr/local/g95/include
with_etsf_io_libs= -L/usr/local/g95/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/g95/include
with_netcdf_libs= -L/usr/local/g95/lib -lnetcdf
enable_gw_dpc = yes
enable_64bit_flags = yes
#enable_debug = no
status = testing

[bb_amd-g95_milou_nofb]
FCFLAGS_EXTRA = -freal=nan
enable_mpi = yes
enable_mpi_io = yes
with_mpi_prefix = /usr/local/openmpi_g95
with_linalg_flavor = netlib
with_linalg_libs = -L/usr/local/g95/lib -llapack -lblas
with_dft_flavor = none
with_trio_flavor = etsf_io+netcdf
with_etsf_io_incs= -I/usr/local/g95/include
with_etsf_io_libs= -L/usr/local/g95/lib -letsf_io_low_level -letsf_io_utils -letsf_io
with_netcdf_incs= -I/usr/local/g95/include
with_netcdf_libs= -L/usr/local/g95/lib -lnetcdf
enable_gw_dpc = yes
enable_64bit_flags = yes
#enable_debug = no
status = testing

[bb_xeon-intel14_tikal]
#FC = ifort
#CC = icc
#CXX = icpc
CPP = icc -E
#FCCPP = fpp
enable_gw_dpc = yes
enable_mpi = yes
fcflags_opt_41_xc_lowlevel = -O1 -vec-report0 -extend-source -noaltparam -nofpscomp -xHost
with_mpi_prefix = /usr/local/openmpi_intel14
enable_mpi_io = yes
with_dft_flavor = atompaw+bigdft+libxc+wannier90
with_trio_flavor = netcdf+etsf_io+fox
with_fft_flavor = fftw3
with_fft_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
with_linalg_flavor = mkl
with_linalg_libs = -L/opt/intel/composerxe_14/mkl/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group
status = certified

#
############ macports ##########
#  ./configure \
#  --prefix=/opt/local \
#  --with-linalg-flavor="atlas" \
#  --enable-gw-dpc \
#  FCCPP="mpicc-openmpi-mp -E -ansi" \
#  --enable-mpi="yes" \
#  --enable-mpi-io="yes" \
#  --with-mpi-level="1" \
#  MPI_RUNNER=/opt/local/bin/mpiexec-openmpi-mp \
#  --with-fft-flavor="fftw3" \
#  --with-fft-libs="-lfftw3 -lfftw3f" \
#  --with-trio-flavor="netcdf+etsf_io" \
#  --with-etsf-io-incs="-I"/opt/local"/include/gcc" \
#  --with-netcdf-incs="-I"/opt/local"/include" \
#  --with-netcdf-libs="-L"/opt/local"/lib -lnetcdf -lnetcdff" \
#  --with-dft-flavor="libxc"+wannier90" \
#  --with-libxc-incs="-I"/opt/local"/include"
#
