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

Update CI scripts on Daint: fail early when running in $HOME.

parent c0217aef
No related branches found
No related tags found
1 merge request!11Consolidation with CDI-PIO (1.8.x)
Pipeline #20219 failed
...@@ -9,6 +9,15 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd) ...@@ -9,6 +9,15 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh" . "${script_dir}/utils.sh"
init_cray1203 init_cray1203
# Save time for the person running this script manually:
if test "x${PE_NETCDF_MODULE_NAME}" = 'xcray-netcdf'; then
case $top_srcdir in
"${HOME}/"*)
echo "ERROR: parallel NetCDF4 tests are known to fail when CDI is built in the user home directory and linked against NetCDF that does not support MPI parallel invocations" >&2
exit 1
esac
fi
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh" test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure script does not check the 'lib64' subdirectory, therefore we # The configure script does not check the 'lib64' subdirectory, therefore we
......
...@@ -9,6 +9,15 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd) ...@@ -9,6 +9,15 @@ top_srcdir=$(cd "${script_dir}/../../.."; pwd)
. "${script_dir}/utils.sh" . "${script_dir}/utils.sh"
init_pgi2011 init_pgi2011
# Save time for the person running this script manually:
if test "x${PE_NETCDF_MODULE_NAME}" = 'xcray-netcdf'; then
case $top_srcdir in
"${HOME}/"*)
echo "ERROR: parallel NetCDF4 tests are known to fail when CDI is built in the user home directory and linked against NetCDF that does not support MPI parallel invocations" >&2
exit 1
esac
fi
test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh" test -f "${top_srcdir}/configure" || "${top_srcdir}/autogen.sh"
# The configure script does not check the 'lib64' subdirectory, therefore we # The configure script does not check the 'lib64' subdirectory, therefore we
......
...@@ -103,7 +103,15 @@ init_env () ...@@ -103,7 +103,15 @@ init_env ()
init_cray1203 () init_cray1203 ()
{ {
init_env init_env
switch_for_module craype PrgEnv-cray cce/12.0.3 cray-mpich cray-netcdf switch_for_module craype PrgEnv-cray cce/12.0.3 cray-mpich
# Build and test against NetCDF that does not support MPI parallel invocations
# (parallel NetCDF4 tests are known to fail in this case when run from the
# user home directory on Daint):
switch_for_module cray-netcdf
# Uncomment the following line to test against MPI-capable NetCDF:
# switch_for_module cray-netcdf-hdf5parallel cray-hdf5-parallel
CC=cc CC=cc
CXX=CC CXX=CC
...@@ -129,7 +137,15 @@ init_pgi2011 () ...@@ -129,7 +137,15 @@ init_pgi2011 ()
# the Cray packages and have to make sure that the default versions are # the Cray packages and have to make sure that the default versions are
# unloaded (otherwise, we get various warnings and errors): # unloaded (otherwise, we get various warnings and errors):
module unload cray-mpich cray-netcdf cray-netcdf-hdf5parallel cray-hdf5 cray-hdf5-parallel module unload cray-mpich cray-netcdf cray-netcdf-hdf5parallel cray-hdf5 cray-hdf5-parallel
switch_for_module craype PrgEnv-pgi/6.0.8 pgi/20.1.1 cray-mpich/7.7.15 cray-netcdf/4.7.4.0 cray-hdf5/1.12.0.0 switch_for_module craype PrgEnv-pgi/6.0.8 pgi/20.1.1 cray-mpich/7.7.15
# Build and test against NetCDF that does not support MPI parallel invocations
# (parallel NetCDF4 tests are known to fail in this case when run from the
# user home directory on Daint):
switch_for_module cray-netcdf/4.7.4.0 cray-hdf5/1.12.0.0
# Uncomment the following line to test against MPI-capable NetCDF:
# switch_for_module cray-netcdf-hdf5parallel/4.7.4.0 cray-hdf5-parallel/1.12.0.0
CC=cc CC=cc
CXX=CC CXX=CC
......
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