Skip to content
This repository was archived by the owner on Mar 20, 2023. It is now read-only.

Commit 2829bb8

Browse files
iomaganarispramodk
authored andcommitted
Changed pinned parallel version of neuron to generic parallel version (#181)
* Fix for selecting the first version of neuron with `/parallel` found * Added check for finding a compatible neuron version * Print error message to stderr
1 parent f7d78fb commit 2829bb8

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tests/jenkins/nrnivmodl.sh

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,17 @@ set +x
66
TEST_DIR="$1"
77

88
. /gpfs/bbp.cscs.ch/apps/hpc/jenkins/config/modules.sh
9-
module load neuron/2018-10/python3/parallel intel
9+
module load intel
10+
11+
neuron_version=$(module av neuron 2>&1 | grep -o -m 1 '^neuron.*/parallel$' | awk -F' ' '{print $1}')
12+
if [[ $neuron_version ]]; then
13+
module load $neuron_version
14+
module list
15+
else
16+
echo "Error: no compatible neuron version found." >&2
17+
module list
18+
exit 1
19+
fi
1020

1121
unset $(env|awk -F= '/^(PMI|SLURM)_/ {if ($1 != "SLURM_ACCOUNT") print $1}')
1222

0 commit comments

Comments
 (0)