Skip to content
Snippets Groups Projects
Commit ef967c0c authored by Sergey Kosukhin's avatar Sergey Kosukhin
Browse files

Update CI scripts: run './autogen.sh' if needed.

parent ab4d6791
No related branches found
No related tags found
1 merge request!14Draft: K202125/cdi 1.8.x pio merge followup
......@@ -9,7 +9,10 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nv2130
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
#
# Initializes the environment modules.
#
init_env_mods ()
{
saved_set=$-
set +eu
. /etc/profile.d/mpim.sh
module use /data/mpi/sclab/sip/m300488/nvhpc/modulefiles
set -${saved_set}
}
#
# Accepts a list of environment modules and loads them witch conflict
# resolution.
......@@ -101,12 +89,25 @@ switch_for_module ()
done
}
#
# Initializes the environment.
#
init_env ()
{
saved_set=$-
set +eu
. /etc/profile.d/mpim.sh
module use /data/mpi/sclab/sip/m300488/nvhpc/modulefiles
set -${saved_set}
switch_for_module automake
}
#
# Sets variables for tests with NVHPC 21.3.0.
#
init_nv2130()
init_nv2130 ()
{
init_env_mods
init_env
switch_for_module nvhpc/21.3
# The default environment module of NVHPC sets variables, which we do not
......
......@@ -9,6 +9,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_cray1100
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
# in the configure script might be tricky: the 'lib64' subdirectory should be
......@@ -20,6 +22,7 @@ CPPFLAGS="-I${ECCODES_ROOT}/include"
LDFLAGS="-L${ECCODES_ROOT}/lib64"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
......@@ -9,6 +9,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_pgi2011
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
# in the configure script might be tricky: the 'lib64' subdirectory should be
......@@ -20,6 +22,7 @@ CPPFLAGS="-I${ECCODES_ROOT}/include"
LDFLAGS="-L${ECCODES_ROOT}/lib64"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
#
# Initializes the environment modules.
#
init_env_mods ()
{
:
}
#
# Accepts a list of environment modules and loads them witch conflict
# resolution.
......@@ -97,12 +89,20 @@ switch_for_module ()
done
}
#
# Initializes the environment.
#
init_env ()
{
:
}
#
# Sets variables for tests with Cray 11.0.0.
#
init_cray1100()
init_cray1100 ()
{
init_env_mods
init_env
switch_for_module craype PrgEnv-cray cce/11.0.0 cray-mpich cray-netcdf
CC=cc
......@@ -122,9 +122,9 @@ init_cray1100()
#
# Sets variables for tests with PGI 20.1.1.
#
init_pgi2011()
init_pgi2011 ()
{
init_env_mods
init_env
switch_for_module craype PrgEnv-pgi pgi/20.1.1 cray-mpich cray-netcdf
CC=cc
......
......@@ -9,7 +9,10 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_gcc640
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
......@@ -9,7 +9,10 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_intel1706
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
......@@ -9,6 +9,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nag626223
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# Use GCC from the path when compiling/linking Fortran code:
FCFLAGS="-Wc=$(which gcc)"
......@@ -16,6 +18,7 @@ FCFLAGS="-Wc=$(which gcc)"
FCFLAGS+=' -g -kind=byte'
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
......@@ -9,6 +9,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_pgi1990
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# The configure script does not check the 'lib64' subdirectory, therefore we
# run it with '--with-eccodes' and the following flags. Note that fixing this
# in the configure script might be tricky: the 'lib64' subdirectory should be
......@@ -24,6 +26,7 @@ LDFLAGS="-L${ECCODES_ROOT}/lib64"
LDFLAGS+=" -L${HDF5_ROOT}/lib"
"${top_srcdir}/configure" \
--disable-maintainer-mode \
--enable-cf-interface \
--enable-iso-c-interface \
--enable-mpi \
......
......@@ -9,6 +9,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_nag626223
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# When configured as part of ICON, C headers, Fortran modules and library files
# of YAXT and PPM become available only at the build time. The following
# imitates that.
......
......@@ -8,6 +8,8 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh"
init_gcc640
test -f "${top_srcdir}/configure" || ( cd "${top_srcdir}" && ./autogen.sh )
# The configure wrappers of ICON export LD_LIBRARY_PATH:
export LD_LIBRARY_PATH="${NETCDF_ROOT}/lib:${GRIBAPI_ROOT}/lib:${LD_LIBRARY_PATH-}"
......
#
# Initializes the environment modules.
#
init_env_mods ()
{
saved_set=$-
set +eu
. /sw/rhel6-x64/etc/profile.mistral
module use /sw/spack-rhel6/spack/modules/linux-rhel6-haswell
set -${saved_set}
}
#
# Accepts a list of environment modules and loads them witch conflict
# resolution.
......@@ -101,12 +89,25 @@ switch_for_module ()
done
}
#
# Initializes the environment.
#
init_env ()
{
saved_set=$-
set +eu
. /sw/rhel6-x64/etc/profile.mistral
module use /sw/spack-rhel6/spack/modules/linux-rhel6-haswell
set -${saved_set}
switch_for_module automake libtool autoconf
}
#
# Sets variables for tests with GCC 6.4.0.
#
init_gcc640()
init_gcc640 ()
{
init_env_mods
init_env
switch_for_module gcc/6.4.0 openmpi/2.0.2p1_hpcx-gcc64
CC=gcc
......@@ -125,9 +126,9 @@ init_gcc640()
#
# Sets variables for tests with Intel 17.0.6.
#
init_intel1706()
init_intel1706 ()
{
init_env_mods
init_env
switch_for_module gcc/6.4.0 intel/17.0.6 openmpi/2.0.2p1_hpcx-intel14
CC=icc
......@@ -151,9 +152,9 @@ init_intel1706()
#
# Sets variables for tests with NAG 6.2.6223.
#
init_nag626223()
init_nag626223 ()
{
init_env_mods
init_env
switch_for_module gcc/6.4.0 nag/6.2
# There is no environment module for MPICH:
......@@ -180,9 +181,9 @@ init_nag626223()
#
# Sets variables for tests with PGI 19.9.0.
#
init_pgi1990()
init_pgi1990 ()
{
init_env_mods
init_env
switch_for_module pgi/19.9-spack openmpi/2.0.2p2-pgi-19.9
CC=pgcc
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment