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

Commit 11a7ab6

Browse files
iomaganarispramodk
authored andcommitted
Added coreneuron chekpoint-restore test (#189)
1 parent 98c236a commit 11a7ab6

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

tests/jenkins/Jenkinsfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -302,6 +302,16 @@ pipeline {
302302
sh 'sh tests/jenkins/run_corenrn.sh ringtest SoA ringtest 7'
303303
}
304304
}
305+
stage('corenrn restore AoS'){
306+
steps{
307+
sh 'sh tests/jenkins/run_corenrn_restore.sh AoS 6'
308+
}
309+
}
310+
stage('corenrn restore SoA'){
311+
steps{
312+
sh 'sh tests/jenkins/run_corenrn_restore.sh SoA 6'
313+
}
314+
}
305315
}
306316
}
307317
}
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/bash
2+
3+
set -e
4+
5+
module load hpe-mpi
6+
7+
CORENRN_TYPE="$1"
8+
MPI_RANKS="$2"
9+
10+
cd $WORKSPACE/ringtest
11+
12+
mpirun -n ${MPI_RANKS} ./${CORENRN_TYPE}/special-core -mpi -e 10 -d coredat --checkpoint part0 --outpath part0
13+
mpirun -n ${MPI_RANKS} ./${CORENRN_TYPE}/special-core -mpi -e 40 -d coredat --checkpoint part1 --restore part0 --outpath part1
14+
mpirun -n ${MPI_RANKS} ./${CORENRN_TYPE}/special-core -mpi -e 100 -d coredat --checkpoint part2 --restore part1 --outpath part2
15+
16+
cat part0/out.dat > ringtest/cnrn.dat
17+
cat part1/out.dat >> ringtest/cnrn.dat
18+
cat part2/out.dat >> ringtest/cnrn.dat
19+
20+
cat ringtest/cnrn.dat | sort -k 1n,1n -k 2n,2n > ringtest/out_cn_restore_ringtest.spk
21+
diff -w -q ringtest/out_nrn_ringtest.spk ringtest/out_cn_restore_ringtest.spk

0 commit comments

Comments
 (0)