# -*- INI -*-
#
# Copyright (C) 2009-2021 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 and dependencies.conf for details);
#
#
# Section format (in this precise order):
#
#   * compiler flags;
#   * non-parallel switches (enable_*) and simple flavors (debug, optim);
#   * OpenMP options;
#   * MPI options;
#   * GPU options;
#   * linear algebra;
#   * FFT;
#   * HDF5 and NetCDF;
#   * other I/O libraries (LibPSML, LibXML2, XMLF90);
#   * DFT libraries (LibXC, TRIQS, Wannier90);
#   * BigDFT configuration;
#   * profiling libraries and extra algorithms (Levmar, PAPI).
#
# Each subsection is separated from the others by a blank line.
#

# WARNING: modify the defaults with *extreme* care!
[DEFAULT]
with_libxc = yes
with_netcdf = yes

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

##############################################
#  ABIREF ( CentOS 7.x ) : REF

# debug, reference
[abiref_gnu_9.2_debug]

FCFLAGS_EXTRA = -Wall
FC_LIBS = -lstdc++ -ldl

with_debug_flavor = enhanced
with_optim_flavor = none

enable_cclock = no
enable_fc_wrapper = no
enable_gw_dpc = no
enable_python_invocation = yes
enable_netcdf_default = no

enable_openmp = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.7_gcc92/lib -lopenblas -lpthread

with_fft_flavor = fftw3
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib64 -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = no
with_libxml2 = no
with_xmlf90 = no

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_triqs = no
with_wannier90 = no

with_bigdft = no

with_levmar = no
with_papi = no

# scalapack
[abiref_intel_19.1_mpich]

CPP = icc -E
FC_LIBS= -lstdc++ -ldl

enable_avx_safe_mode = no
enable_gw_dpc = yes
enable_python_invocation = yes
enable_netcdf_default = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END ABIREF
##############################################


###########################################################
# ALPS ( CentOS 8.x )

#
[alps_gnu_9.3_openmpi]

CPPFLAGS_EXTRA = -DHAVE_TEST_TIME_PARTITIONING
FCFLAGS_EXTRA = -O2 -g -Wall -Wno-maybe-uninitialized -ffpe-trap=invalid,zero,overflow -fbacktrace -pedantic -fcheck=all

enable_gw_dpc = yes
enable_netcdf_default = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.10_gcc93/lib -lopenblas -lpthread

with_fft_flavor = fftw3
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib/x86_64-linux -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

BIGDFT_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/include
BIGDFT_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/lib -lbigdft-1 -labinit -lpaw_bigdft -lyaml -lrt

#
[alps_gnu_9.3_serial]

FCFLAGS_EXTRA = -fno-frontend-optimize -O2 -g -Wall -Wno-maybe-uninitialized -ffpe-trap=invalid,zero,overflow -fbacktrace -pedantic -fcheck=all

enable_gw_dpc = yes
enable_netcdf_default = no

with_mpi = no

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.10_gcc93/lib -lopenblas -lpthread

with_fft_flavor = fftw3
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib/x86_64-linux -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# nag, pedantic
[alps_nag_7.0_openmpi]

enable_gw_dpc = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

# netlib v3.9
with_linalg_flavor = netlib
LINALG_LIBS = -L/usr/local/netlib_v3.9_nag7 -llapack -lrefblas -lpthread -lm

#with_fft_flavor = fftw3
#FFTW3_CPPFLAGS = -I/usr/include
#FFTW3_FCFLAGS = -I/usr/include
#FFTW3_LIBS = -L/usr/lib64 -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

#with_libxml2 = yes
#LIBPSML_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7/include
#LIBPSML_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7/lib -lpsml
#XMLF90_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1/include
#XMLF90_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1/lib -lxmlf90

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4

#
# oneAPI Compilers ( with HPC MPI ) 
[alps_intel_21.4_elpa]

FC = mpiifort
CC = mpiicc
CXX = mpiicpc

CPP = icc -E
FC_LIBS = -lstdc++ -ldl

enable_avx_safe_mode = no
enable_gw_dpc = yes
enable_python_invocation = yes
enable_netcdf_default = yes

#with_mpi = ${I_MPI_ROOT}
with_mpi = yes
enable_mpi_io = yes

with_linalg_flavor = mkl+elpa
LINALG_CPPFLAGS = -I${MKLROOT}/include -I${ELPA_INC_DIR}
LINALG_FCFLAGS = -I${MKLROOT}/include -I${ELPA_INC_DIR}  -I${ELPA_FC_INC}
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -lmkl_scalapack_lp64 -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -lmkl_blacs_intelmpi_lp64 -lpthread -lm -ldl -L${ELPA_LIB_DIR} -lelpa
with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END ALPS
##############################################


###########################################################
# ATLAS ( CentOS 7.x )

# intel 18
[atlas_intel_18.0_openmpi]

enable_gw_dpc = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# intel 19.1
[atlas_intel_19.1_bdir]

enable_gw_dpc = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END ATLAS
###########################################################


###########################################################
# BOB ( Fedora )

#
[bob_gnu_7.5_openmp]

FCFLAGS_EXTRA = -fopenmp
FC_LDFLAGS_EXTRA = -fopenmp

enable_openmp = yes
enable_netcdf_default = no

with_mpi = no
enable_mpi_io = no

with_linalg_flavor = atlas
LINALG_FCFLAGS = -I/usr/include/atlas
LINALG_LIBS = -L/usr/lib64/atlas -ltatlas -lsatlas

# TODO : need to resolve problem with unitary
#with_fft_flavor = fftw3
#FFTW3_FCFLAGS = -I/usr/include
#FFTW3_LIBS = -L/usr/lib64 -lfftw3_omp -lfftw3f_omp -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

LIBXC_CPPFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4/include
LIBXC_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4/include
LIBXC_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4/lib -lxc

# END BOB
###########################################################


###########################################################
# BUDA2 ( CentOS 7.x )

#
[buda2_gnu_8.2_mpich3]

FCFLAGS_EXTRA = -O3 -finit-real=nan
FC_LIBS = -lstdc++ -ldl

enable_gw_dpc = yes
enable_netcdf_default = yes
enable_python_invocation = yes

with_mpi = ${MPIHOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--no-as-needed -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# GPU CARDS : 2 x K40c & TITAN V
[buda2_gnu_8.3_cuda]

FC_LDFLAGS_EXTRA = -Wl,-z,muldefs
FC_LIBS = -lstdc++ -ldl

enable_gw_dpc = yes
enable_netcdf_default = no
enable_python_invocation = yes

with_mpi = ${MPIHOME}
enable_mpi_io = yes

with_gpu = yes
with_gpu_flavor = cuda-double
NVCC_CFLAGS = -O3 -gencode arch=compute_70,code=sm_70 -gencode arch=compute_30,code=sm_30 -Xptxas=-v --use_fast_math --compiler-options -O3,-fPIC

with_linalg_flavor = mkl+magma
LINALG_CPPFLAGS = -I${MAGMA_ROOT}/include -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MAGMA_ROOT}/include -I${MKLROOT}/include
LINALG_LIBS = -L${MAGMA_ROOT}/lib -Wl,--start-group -lmagma -lcuda -Wl,--end-group -L${MKLROOT}/lib/intel64 -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -lgomp -lpthread -lm

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4

#
[buda2_intel_17.0_openmpi]

FC_LIBS = -lstdc++ -ldl

enable_gw_dpc = yes
enable_python_invocation = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2
enable_netcdf_default = yes

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END BUDA2
###########################################################


###########################################################
# GRAPHENE  BigSur (11.5)  +gcc11 +openmpi +openblas
# MacPorts only 
# libxc 4.3.4	
# atompaw 4.1.0.6
# openmpi 4.1.1
# OpenBLAS 0.3.17
# fftw3 3.3.9
# netcdf 4.8.0
# netcdf-fortran 4.5.3
# hdf5 1.12.0

[graphene_gnu_11.2_macports]

CFLAGS = -O2 -g
CXXFLAGS = -O2 -g
FCFLAGS = -O2 -g -ffree-line-length-none -fallow-argument-mismatch

enable_netcdf_default = no
enable_gw_dpc = no

with_mpi = /opt/local
enable_mpi_io = yes

# OpenBLAS
with_linalg_flavor = openblas
LINALG_FCFLAGS = -I/opt/local/include
LINALG_LIBS = -L/opt/local/lib -lopenblas

with_fft_flavor = fftw3
FFTW3_CPPFLAGS = -I/opt/local/include
FFTW3_FCFLAGS = -I/opt/local/include
FFTW3_LIBS = -L/opt/local/lib -lfftw3 -lfftw3f

with_hdf5 = /opt/local
with_netcdf = /opt/local
with_netcdf_fortran = /opt/local
with_libxc = /opt/local

WANNIER90_CPPFLAGS = -I/opt/local/include
WANNIER90_FCFLAGS = -I/opt/local/include
WANNIER90_LIBS = -L/opt/local/lib -lwannier

# END GRAPHENE
###########################################################


##############################################
#  HIGGS ( ubuntu 18.04.1 LTS )

#
[higgs_gnu_7.5_cov]

FCFLAGS_EXTRA = -fprofile-arcs -ftest-coverage

enable_gw_dpc = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group

with_fft_flavor = dfti
#FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

BIGDFT_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/include
BIGDFT_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/lib -lbigdft-1 -labinit -lpaw_bigdft -lyaml -lrt

#
[higgs_gnu_7.3_triqs2]

CC = mpicc
CXX = mpicxx
CXXFLAGS = -std=gnu++17
F77 = mpif77
FC = mpif90

enable_netcdf_default = no
enable_python_invocation = yes

with_mpi = yes
enable_mpi_io = yes

with_linalg_flavor = netlib
LINALG_LIBS = -L/usr/lib/x86_64-linux-gnu/lib -llapack -lblas

with_fft_flavor = fftw3
FFTW3_CPPFLAGS = -I/usr/include
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib/x86_64-linux-gnu -lfftw3 -lfftw3f

with_hdf5 = /usr/local/hdf5-1.10.4_gcc73_serial
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.4.1.1
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.4.4

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.2.3

TRIQS_CPPFLAGS = -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I${TRIQS_SRC}/cthyb.build/c++ -I${BOOST_ROOT}/include -I${TRIQS_ROOT}/include -I${TRIQS_SRC}/cthyb.src/c++/triqs_cthyb -I${HDF5_ROOT}/include
TRIQS_CXXFLAGS = -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I${TRIQS_SRC}/cthyb.build/c++ -I${BOOST_ROOT}/include -I${TRIQS_ROOT}/include -I${TRIQS_SRC}/cthyb.src/c++/triqs_cthyb -I${HDF5_ROOT}/include
TRIQS_FCFLAGS = -I/usr/include/python2.7 -I/usr/lib/python2.7/dist-packages/numpy/core/include -I${TRIQS_SRC}/cthyb.build/c++ -I${BOOST_ROOT}/include -I${TRIQS_ROOT}/include -I${TRIQS_SRC}/cthyb.src/c++/triqs_cthyb -I${HDF5_ROOT}/include
TRIQS_LIBS = -L${BOOST_ROOT}/lib -lboost_mpi_python -lboost_mpi -lboost_python27 -L${TRIQS_ROOT}/lib -ltriqs -lcthyb_c -lstdc++ -lpython2.7

#
[higgs_intel_19.0_serial]

CC = icc
CXX = icpc
FC = ifort

enable_gw_dpc = yes
enable_netcdf_default = no

with_mpi = no

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END HIGGS
##############################################


##############################################
# MAX2 ( CentOS 6.10 )

#
[max2_gnu_6.5_mpich]

enable_gw_dpc = yes
enable_memory_profiling = yes
enable_netcdf_default = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = acml
LINALG_FCFLAGS = -I/opt/acml6.1.0/include
LINALG_LIBS = -L/opt/acml6.1.0/lib -lacml

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

# END MAX2
##############################################


##############################################
#  SCOPE ( ubuntu 18.04 LTS )

#
[scope_gnu_10.2_paral]

enable_gw_dpc = no
#enable_memory_profiling = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.10_gcc10.2/lib -lopenblas -lpthread

with_fft_flavor = fftw3
FFTW3_CPPFLAGS = -I/usr/include
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib/x86_64-linux-gnu -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

BIGDFT_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/include
BIGDFT_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/lib -lbigdft-1 -labinit -lpaw_bigdft -lyaml -lrt

#
[scope_gnu_10.2_s64]

enable_gw_dpc = yes
#enable_memory_profiling = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.10_gcc10.2/lib -lopenblas -lpthread

with_fft_flavor = fftw3
FFTW3_CPPFLAGS = -I/usr/include
FFTW3_FCFLAGS = -I/usr/include
FFTW3_LIBS = -L/usr/lib/x86_64-linux-gnu -lfftw3 -lfftw3f

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

#
[scope_gnu_7.5_dep]

FCFLAGS = -O0 -g -ffree-line-length-none -ffree-form
FC_LIBS = -lstdc++ -ldl

enable_gw_dpc = yes
#enable_memory_profiling = yes
enable_python_invocation = yes
enable_netcdf_default = yes

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = openblas
LINALG_LIBS = -L/usr/local/OpenBLAS-0.3.10_gcc75/lib -lopenblas -lpthread
#
with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1


# END SCOPE
##############################################

##############################################
#  UBU ( ubuntu 16.04 LTS )

#
[ubu_gnu_9.2_openmpi]

FCFLAGS_EXTRA = -fno-frontend-optimize -O2 -g -Wall -Wno-maybe-uninitialized -fbacktrace -pedantic -fcheck=all
FC_LIBS= -lstdc++ -ldl
#FC_LIBS= -L/usr/lib/x86_64-linux-gnu/hdf5/serial -lhdf5_hl -lhdf5 -lstdc++ -ldl

enable_gw_dpc = yes
enable_python_invocation = yes
enable_netcdf_default = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_gf_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

#
[ubu_intel_16.0_mpich]

CPP = icc -E
FC_LIBS= -lstdc++ -ldl

enable_avx_safe_mode = no
enable_gw_dpc = yes
enable_python_invocation = yes
enable_netcdf_default = no

with_mpi = ${MPI_HOME}
enable_mpi_io = yes

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -Wl,--start-group  -lmkl_intel_lp64 -lmkl_sequential -lmkl_core -Wl,--end-group

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4
with_wannier90 = ${FALLBACKS_HOME}_FB_/${FB}/wannier90/2.0.1.1

BIGDFT_FCFLAGS = -I${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/include
BIGDFT_LIBS = -L${FALLBACKS_HOME}_FB_/${FB}/bigdft/abinit-1.7.1.28/lib -lbigdft-1 -labinit -lpaw_bigdft -lyaml -lrt

#
[ubu_intel_16.0_openmp]

enable_gw_dpc = yes
enable_netcdf_default = no

enable_openmp = yes

with_mpi = no
enable_mpi_io = no

with_linalg_flavor = mkl
LINALG_CPPFLAGS = -I${MKLROOT}/include
LINALG_FCFLAGS = -I${MKLROOT}/include
LINALG_LIBS = -L${MKLROOT}/lib/intel64 -lmkl_intel_lp64 -lmkl_intel_thread -lmkl_core -liomp5 -lpthread -lm -ldl

with_fft_flavor = dfti
FFT_FCFLAGS = -I${MKLROOT}/include

with_hdf5 = ${FALLBACKS_HOME}_FB_/${FB}/hdf5/1.10.6
with_netcdf = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4/4.6.3
with_netcdf_fortran = ${FALLBACKS_HOME}_FB_/${FB}/netcdf4_fortran/4.5.2

#with_libpsml = ${FALLBACKS_HOME}_FB_/${FB}/libpsml/1.1.7
#with_xmlf90 = ${FALLBACKS_HOME}_FB_/${FB}/xmlf90/1.5.3.1

with_libxc = ${FALLBACKS_HOME}_FB_/${FB}/libxc/4.3.4

# END UBU
##############################################
