[Darshan-commits] [Git][darshan/darshan][master] 2 commits: add regression test scripts for crays at nersc

Shane Snyder xgitlab at cels.anl.gov
Thu Apr 27 18:03:29 CDT 2017


Shane Snyder pushed to branch master at darshan / darshan


Commits:
ff6d1904 by Shane Snyder at 2017-04-27T16:01:32-07:00
add regression test scripts for crays at nersc

only tested on Edison so far, and works fine

- - - - -
b4f28704 by Shane Snyder at 2017-04-27T16:03:01-07:00
make sure to unload other darshan modules

- - - - -


4 changed files:

- darshan-test/regression/cray-module-alcf/env.sh
- + darshan-test/regression/cray-module-nersc/env.sh
- + darshan-test/regression/cray-module-nersc/runjob.sh
- + darshan-test/regression/cray-module-nersc/slurm-submit.sl


Changes:

=====================================
darshan-test/regression/cray-module-alcf/env.sh
=====================================
--- a/darshan-test/regression/cray-module-alcf/env.sh
+++ b/darshan-test/regression/cray-module-alcf/env.sh
@@ -31,4 +31,5 @@ export DARSHAN_F90=ftn
 
 export DARSHAN_RUNJOB="cray-module-alcf/runjob.sh"
 
+module unload darshan >& /dev/null
 module load $DARSHAN_PATH/share/craype-2.x/modulefiles/


=====================================
darshan-test/regression/cray-module-nersc/env.sh
=====================================
--- /dev/null
+++ b/darshan-test/regression/cray-module-nersc/env.sh
@@ -0,0 +1,35 @@
+#!/bin/bash
+
+# General notes
+#######################
+
+# Script to set up the environment for tests on this platform.  Must export
+# the following environment variables:
+# 
+# DARSHAN_CC: command to compile C programs
+# DARSHAN_CXX: command to compile C++ programs
+# DARSHAN_F90: command to compile Fortran90 programs
+# DARSHAN_F77: command to compile Fortran77 programs
+# DARSHAN_RUNJOB: command to execute a job and wait for its completion
+
+# This script may load optional modules (as in a Cray PE), set LD_PRELOAD
+# variables (as in a dynamically linked environment), or generate mpicc
+# wrappers (as in a statically linked environment).
+
+# Notes specific to this platform (cray-module-nersc)
+########################
+# Use Cray's default compiler wrappers and load the module associated with
+# this darshan install
+#
+# RUNJOB is responsible for submitting a slurm job, waiting for its
+# completion, and checking its return status
+
+export DARSHAN_CC=cc
+export DARSHAN_CXX=CC
+export DARSHAN_F77=ftn
+export DARSHAN_F90=ftn
+
+export DARSHAN_RUNJOB="cray-module-nersc/runjob.sh"
+
+module unload darshan >& /dev/null
+module load $DARSHAN_PATH/share/craype-2.x/modulefiles/


=====================================
darshan-test/regression/cray-module-nersc/runjob.sh
=====================================
--- /dev/null
+++ b/darshan-test/regression/cray-module-nersc/runjob.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+
+# submit job and wait for it to return
+sbatch --wait -N 1 -t 10 -p debug --output $DARSHAN_TMP/$$-tmp.out --error $DARSHAN_TMP/$$-tmp.err $DARSHAN_TESTDIR/$DARSHAN_PLATFORM/slurm-submit.sl "$@"
+
+# exit with return code of this job submission
+exit $?


=====================================
darshan-test/regression/cray-module-nersc/slurm-submit.sl
=====================================
--- /dev/null
+++ b/darshan-test/regression/cray-module-nersc/slurm-submit.sl
@@ -0,0 +1,3 @@
+#!/bin/bash -l
+
+srun -n $DARSHAN_DEFAULT_NPROCS $@



View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/compare/a705502b74f154ea0e8292ff68b2728e3e16be3b...b4f2870451ea7d81d0c1ce28f34ef11a821267d1


More information about the Darshan-commits mailing list