Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hfp committed Oct 22, 2024
1 parent b32b26c commit 153fcdf
Show file tree
Hide file tree
Showing 39 changed files with 247 additions and 418 deletions.
11 changes: 3 additions & 8 deletions config/elpa/configure-elpa-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

# Development versions may require autotools mechanics
if [ -e "${HERE}/autogen.sh" ]; then
Expand All @@ -100,8 +95,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
11 changes: 3 additions & 8 deletions config/elpa/configure-elpa-hsw-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

# Development versions may require autotools mechanics
if [ -e "${HERE}/autogen.sh" ]; then
Expand All @@ -93,8 +88,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
36 changes: 13 additions & 23 deletions config/elpa/configure-elpa-hsw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,26 @@ FLAGS="-O2 ${TARGET} -I${MKLROOT}/include"
export LDFLAGS="-L${MKLROOT}/lib/intel64"
export CFLAGS="${FLAGS} -fno-alias -ansi-alias ${FPFLAGS}"
export CXXFLAGS="${CFLAGS}"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads -heap-arrays 4096"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads"
export LIBS="-lmkl_${MKL_FCRTL}_lp64 -lmkl_core -lmkl_${MKL_OMPRTL} -Wl,--as-needed -liomp5 -Wl,--no-as-needed"
export SCALAPACK_LDFLAGS="-lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64"
export F77FLAGS=${FCFLAGS}
export F90FLAGS=${FCFLAGS}
export FFLAGS=${FCFLAGS}

FC="ifx"; CC="icx"; CXX="icpx"; AR=$(command -v xiar || echo "ar")
if [ "1" = "${INTEL}" ] ||
[ ! "$(command -v ${FC})" ] || [ ! "$(command -v ${CC})" ] || [ ! "$(command -v ${CXX})" ];
then
FC="ifort"
if [ "1" != "${INTEL}" ]; then
CC="icc"
CXX="icpc"
fi
AR=$(command -v xiar || echo "ar")
if [ "1" != "${INTEL}" ]; then
CXX=$(command -v mpiicpx || echo "mpiicpc -cxx=icpx")
CC=$(command -v mpiicx || echo "mpiicc -cc=icx")
FC=$(command -v mpiifx || echo "mpiifort -fc=ifx")
else
CXX=mpiicpc -cxx=$(command -v icpc || echo "icpx")
CC=mpiicc -cc=$(command -v icc || echo "icx")
FC="mpiifort"
fi

export FC="mpiifort -fc=${FC}"
export CC="mpiicc -cc=${CC}"
export CXX="mpiicpc -cxx=${CXX}"
export F77=${FC}
export F90=${FC}
export AR

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC} AR
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

CC_VERSION_STRING=$(${CC} --version 2>/dev/null | head -n1 | sed "s/..* \([0-9][0-9]*\.[0-9][0-9]*\.*[0-9]*\)[ \S]*.*/\1/")
CC_VERSION_MAJOR=$(echo "${CC_VERSION_STRING}" | cut -d"." -f1)
Expand Down Expand Up @@ -128,8 +118,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
11 changes: 3 additions & 8 deletions config/elpa/configure-elpa-skx-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

# Development versions may require autotools mechanics
if [ -e "${HERE}/autogen.sh" ]; then
Expand All @@ -92,8 +87,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
36 changes: 13 additions & 23 deletions config/elpa/configure-elpa-skx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -54,36 +54,26 @@ FLAGS="-O2 ${TARGET} -I${MKLROOT}/include"
export LDFLAGS="-L${MKLROOT}/lib/intel64"
export CFLAGS="${FLAGS} -fno-alias -ansi-alias ${FPFLAGS}"
export CXXFLAGS="${CFLAGS}"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads -heap-arrays 4096"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads"
export LIBS="-lmkl_${MKL_FCRTL}_lp64 -lmkl_core -lmkl_${MKL_OMPRTL} -Wl,--as-needed -liomp5 -Wl,--no-as-needed"
export SCALAPACK_LDFLAGS="-lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64"
export F77FLAGS=${FCFLAGS}
export F90FLAGS=${FCFLAGS}
export FFLAGS=${FCFLAGS}

FC="ifx"; CC="icx"; CXX="icpx"; AR=$(command -v xiar || echo "ar")
if [ "1" = "${INTEL}" ] ||
[ ! "$(command -v ${FC})" ] || [ ! "$(command -v ${CC})" ] || [ ! "$(command -v ${CXX})" ];
then
FC="ifort"
if [ "1" != "${INTEL}" ]; then
CC="icc"
CXX="icpc"
fi
AR=$(command -v xiar || echo "ar")
if [ "1" != "${INTEL}" ]; then
CXX=$(command -v mpiicpx || echo "mpiicpc -cxx=icpx")
CC=$(command -v mpiicx || echo "mpiicc -cc=icx")
FC=$(command -v mpiifx || echo "mpiifort -fc=ifx")
else
CXX=mpiicpc -cxx=$(command -v icpc || echo "icpx")
CC=mpiicc -cc=$(command -v icc || echo "icx")
FC="mpiifort"
fi

export FC="mpiifort -fc=${FC}"
export CC="mpiicc -cc=${CC}"
export CXX="mpiicpc -cxx=${CXX}"
export F77=${FC}
export F90=${FC}
export AR

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC} AR
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

CC_VERSION_STRING=$(${CC} --version 2>/dev/null | head -n1 | sed "s/..* \([0-9][0-9]*\.[0-9][0-9]*\.*[0-9]*\)[ \S]*.*/\1/")
CC_VERSION_MAJOR=$(echo "${CC_VERSION_STRING}" | cut -d"." -f1)
Expand Down Expand Up @@ -127,8 +117,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
38 changes: 14 additions & 24 deletions config/elpa/configure-elpa.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ then
CONFOPTS="--disable-avx512"
fi

CONFOPTS="${CONFOPTS} --enable-openmp --enable-generic-kernels --without-threading-support-check-during-build"
CONFOPTS="${CONFOPTS} --enable-openmp --without-threading-support-check-during-build"
FPFLAGS="-fp-model fast"
MKL_OMPRTL="intel_thread"
MKL_FCRTL="intel"
Expand All @@ -62,36 +62,26 @@ FLAGS="-O2 ${TARGET} -I${MKLROOT}/include"
export LDFLAGS="-L${MKLROOT}/lib/intel64"
export CFLAGS="${FLAGS} -fno-alias -ansi-alias ${FPFLAGS}"
export CXXFLAGS="${CFLAGS}"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads -heap-arrays 4096"
export FCFLAGS="${FLAGS} -I${MKLROOT}/include/intel64/lp64 -align array64byte -threads"
export LIBS="-lmkl_${MKL_FCRTL}_lp64 -lmkl_core -lmkl_${MKL_OMPRTL} -Wl,--as-needed -liomp5 -Wl,--no-as-needed"
export SCALAPACK_LDFLAGS="-lmkl_scalapack_lp64 -lmkl_blacs_intelmpi_lp64"
export F77FLAGS=${FCFLAGS}
export F90FLAGS=${FCFLAGS}
export FFLAGS=${FCFLAGS}

FC="ifx"; CC="icx"; CXX="icpx"; AR=$(command -v xiar || echo "ar")
if [ "1" = "${INTEL}" ] ||
[ ! "$(command -v ${FC})" ] || [ ! "$(command -v ${CC})" ] || [ ! "$(command -v ${CXX})" ];
then
FC="ifort"
if [ "1" != "${INTEL}" ]; then
CC="icc"
CXX="icpc"
fi
AR=$(command -v xiar || echo "ar")
if [ "1" != "${INTEL}" ]; then
CXX=$(command -v mpiicpx || echo "mpiicpc -cxx=icpx")
CC=$(command -v mpiicx || echo "mpiicc -cc=icx")
FC=$(command -v mpiifx || echo "mpiifort -fc=ifx")
else
CXX=mpiicpc -cxx=$(command -v icpc || echo "icpx")
CC=mpiicc -cc=$(command -v icc || echo "icx")
FC="mpiifort"
fi

export FC="mpiifort -fc=${FC}"
export CC="mpiicc -cc=${CC}"
export CXX="mpiicpc -cxx=${CXX}"
export F77=${FC}
export F90=${FC}
export AR

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC} AR
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

CC_VERSION_STRING=$(${CC} --version 2>/dev/null | head -n1 | sed "s/..* \([0-9][0-9]*\.[0-9][0-9]*\.*[0-9]*\)[ \S]*.*/\1/")
CC_VERSION_MAJOR=$(echo "${CC_VERSION_STRING}" | cut -d"." -f1)
Expand Down Expand Up @@ -133,8 +123,8 @@ fi

if [ -e "${HERE}/Makefile" ]; then
sed -i \
-e "s/-openmp/-qopenmp/" \
-e "s/all-am:\(.*\) \$(PROGRAMS)/all-am:\1/" \
-e "s/-fopenmp/-qopenmp/" \
Makefile
fi

Expand Down
9 changes: 2 additions & 7 deletions config/hdf5/configure-hdf5-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

cat << EOM > .autom4te.cfg
begin-language: "Autoconf-without-aclocal-m4"
Expand Down
9 changes: 2 additions & 7 deletions config/hdf5/configure-hdf5-hsw-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

cat << EOM > .autom4te.cfg
begin-language: "Autoconf-without-aclocal-m4"
Expand Down
32 changes: 11 additions & 21 deletions config/hdf5/configure-hdf5-hsw.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,19 @@ export CFLAGS="${FLAGS} -Wno-trigraphs ${FPCMODEL}"
export CXXFLAGS="${FLAGS} -Wno-trigraphs ${FPCMODEL}"
export FCFLAGS="${FLAGS} ${FPFMODEL} -align array64byte"

FC="ifx"; CC="icx"; CXX="icpx"; AR=$(command -v xiar || echo "ar")
if [ "1" = "${INTEL}" ] ||
[ ! "$(command -v ${FC})" ] || [ ! "$(command -v ${CC})" ] || [ ! "$(command -v ${CXX})" ];
then
FC="ifort"
if [ "1" != "${INTEL}" ]; then
CC="icc"
CXX="icpc"
fi
AR=$(command -v xiar || echo "ar")
if [ "1" != "${INTEL}" ]; then
CXX=$(command -v mpiicpx || echo "mpiicpc -cxx=icpx")
CC=$(command -v mpiicx || echo "mpiicc -cc=icx")
FC=$(command -v mpiifx || echo "mpiifort -fc=ifx")
else
CXX=mpiicpc -cxx=$(command -v icpc || echo "icpx")
CC=mpiicc -cc=$(command -v icc || echo "icx")
FC="mpiifort"
fi

export FC="mpiifort -fc=${FC}"
export CC="mpiicc -cc=${CC}"
export CXX="mpiicpc -cxx=${CXX}"
export F77=${FC}
export F90=${FC}
export AR

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC} AR
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

cat << EOM > .autom4te.cfg
begin-language: "Autoconf-without-aclocal-m4"
Expand Down
9 changes: 2 additions & 7 deletions config/hdf5/configure-hdf5-skx-gnu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,9 @@ export AR="gcc-ar"
export FC="mpif90"
export CC="mpicc"
export CXX="mpicxx"
export F77=${FC}
export F90=${FC}

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC}
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

cat << EOM > .autom4te.cfg
begin-language: "Autoconf-without-aclocal-m4"
Expand Down
32 changes: 11 additions & 21 deletions config/hdf5/configure-hdf5-skx.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,29 +40,19 @@ export CFLAGS="${FLAGS} -Wno-trigraphs ${FPCMODEL}"
export CXXFLAGS="${FLAGS} -Wno-trigraphs ${FPCMODEL}"
export FCFLAGS="${FLAGS} ${FPFMODEL} -align array64byte"

FC="ifx"; CC="icx"; CXX="icpx"; AR=$(command -v xiar || echo "ar")
if [ "1" = "${INTEL}" ] ||
[ ! "$(command -v ${FC})" ] || [ ! "$(command -v ${CC})" ] || [ ! "$(command -v ${CXX})" ];
then
FC="ifort"
if [ "1" != "${INTEL}" ]; then
CC="icc"
CXX="icpc"
fi
AR=$(command -v xiar || echo "ar")
if [ "1" != "${INTEL}" ]; then
CXX=$(command -v mpiicpx || echo "mpiicpc -cxx=icpx")
CC=$(command -v mpiicx || echo "mpiicc -cc=icx")
FC=$(command -v mpiifx || echo "mpiifort -fc=ifx")
else
CXX=mpiicpc -cxx=$(command -v icpc || echo "icpx")
CC=mpiicc -cc=$(command -v icc || echo "icx")
FC="mpiifort"
fi

export FC="mpiifort -fc=${FC}"
export CC="mpiicc -cc=${CC}"
export CXX="mpiicpc -cxx=${CXX}"
export F77=${FC}
export F90=${FC}
export AR

export MPICC=${CC}
export MPIFC=${FC}
export MPIF77=${F77}
export MPIF90=${F90}
export MPICXX=${CXX}
export F77=${FC} F90=${FC} MPIFC=${FC} MPICC=${CC} AR
export MPIF77=${F77} MPIF90=${F90} MPICXX=${CXX}

cat << EOM > .autom4te.cfg
begin-language: "Autoconf-without-aclocal-m4"
Expand Down
Loading

0 comments on commit 153fcdf

Please sign in to comment.