Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
darshan
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
74
Issues
74
List
Boards
Labels
Milestones
Merge Requests
6
Merge Requests
6
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
darshan
darshan
Commits
df0b800d
Commit
df0b800d
authored
Apr 27, 2017
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add cray regression test scripts (for alcf)
parent
adbdab59
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
78 additions
and
0 deletions
+78
-0
darshan-test/regression/cray-module-alcf/cobalt-submit.sh
darshan-test/regression/cray-module-alcf/cobalt-submit.sh
+10
-0
darshan-test/regression/cray-module-alcf/env.sh
darshan-test/regression/cray-module-alcf/env.sh
+34
-0
darshan-test/regression/cray-module-alcf/runjob.sh
darshan-test/regression/cray-module-alcf/runjob.sh
+34
-0
No files found.
darshan-test/regression/cray-module-alcf/cobalt-submit.sh
0 → 100755
View file @
df0b800d
#!/bin/bash
nprocs
=
$DARSHAN_DEFAULT_NPROCS
nnodes
=
$COBALT_PARTSIZE
ppn
=
$((
nprocs
/
nnodes
))
aprun
-n
$nprocs
-N
$ppn
$@
EXIT_STATUS
=
$?
exit
$EXIT_STATUS
darshan-test/regression/cray-module-alcf/env.sh
0 → 100755
View file @
df0b800d
#!/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-alcf)
########################
# Use Cray's default compiler wrappers and load the module associated with
# this darshan install
#
# RUNJOB is responsible for submitting a cobalt 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-alcf/runjob.sh"
module load
$DARSHAN_PATH
/share/craype-2.x/modulefiles/
darshan-test/regression/cray-module-alcf/runjob.sh
0 → 100755
View file @
df0b800d
#!/bin/bash
# submit job and get job id
jobid
=
`
qsub
--env
DARSHAN_LOGFILE
=
$DARSHAN_LOGFILE
--env
DARSHAN_DEFAULT_NPROCS
=
$DARSHAN_DEFAULT_NPROCS
--proccount
$DARSHAN_DEFAULT_NPROCS
-A
EarlyPerf_theta
-t
10
-n
1
--output
$DARSHAN_TMP
/
$$
-tmp
.out
--error
$DARSHAN_TMP
/
$$
-tmp
.err
--debuglog
$DARSHAN_TMP
/
$$
-tmp
.debuglog
$DARSHAN_TESTDIR
/
$DARSHAN_PLATFORM
/cobalt-submit.sh
"
$@
"
`
if
[
$?
-ne
0
]
;
then
echo
"Error: failed to qsub
$@
"
exit
1
fi
output
=
"foo"
rc
=
0
# loop as long as qstat succeeds and shows information about job
while
[
-n
"
$output
"
-a
"
$rc
"
-eq
0
]
;
do
sleep
5
output
=
`
qstat
$jobid
`
rc
=
$?
done
# look for return code
grep
"exit code of 0"
$DARSHAN_TMP
/
$$
-tmp
.debuglog
>
& /dev/null
if
[
$?
-ne
0
]
;
then
# sleep to give time for exit code line to appear in log file
sleep
5
grep
"exit code of 0"
$DARSHAN_TMP
/
$$
-tmp
.debuglog
>
& /dev/null
if
[
$?
-ne
0
]
;
then
exit
1
else
exit
0
fi
else
exit
0
fi
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment