[Darshan-commits] [Git][darshan/darshan][master] bug fixes in summary per file tool
Shane Snyder
xgitlab at cels.anl.gov
Tue Jun 7 11:10:13 CDT 2016
Shane Snyder pushed to branch master at darshan / darshan
Commits:
a6e86829 by Shane Snyder at 2016-06-07T11:09:52-05:00
bug fixes in summary per file tool
- - - - -
1 changed file:
- darshan-util/darshan-summary-per-file.sh
Changes:
=====================================
darshan-util/darshan-summary-per-file.sh
=====================================
--- a/darshan-util/darshan-summary-per-file.sh
+++ b/darshan-util/darshan-summary-per-file.sh
@@ -9,12 +9,12 @@
set -o pipefail
if [ $# -ne 2 ]; then
- echo "Usage: darshan-summary-per-file.sh <input_file.gz> <output_directory>"
+ echo "Usage: darshan-summary-per-file.sh <input_file.darshan> <output_directory>"
exit 1
fi
# count number of files present in log
-filecount=`darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | uniq | wc -l`
+filecount=`darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | sort -n | uniq | wc -l`
rc=$?
if [ $rc -ne 0 ]; then
exit $rc
@@ -29,21 +29,21 @@ fi
# loop through all files in log
counter=0
-darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | uniq |
-while read -r hash suffix stuff ; do
+darshan-parser --file-list $1| egrep -v '^(#|$)' | cut -f 1-2 | sort -n | uniq |
+while read -r hash filepath stuff ; do
counter=$((counter+1))
- file=$(basename $suffix)
- if [ -x $file.gz ] ; then
- $file = $file.$hash.gz
+ file=$(basename $filepath)
+ if [ -x $file.darshan ] ; then
+ $file = $file.$hash.darshan
fi
echo Status: Generating summary for file $counter of $filecount: $file
echo =======================================================
- darshan-convert --file $hash $1 $2/$file.gz
+ darshan-convert --file $hash $1 $2/$file.darshan
rc=$?
if [ $rc -ne 0 ]; then
exit $rc
fi
- darshan-job-summary.pl $2/$file.gz --output $2/$file.pdf
+ darshan-job-summary.pl $2/$file.darshan --output $2/$file.pdf
rc=$?
if [ $rc -ne 0 ]; then
exit $rc
View it on GitLab: https://xgitlab.cels.anl.gov/darshan/darshan/commit/a6e8682980f49039d4f15194840139857291f216
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/darshan-commits/attachments/20160607/389633fb/attachment.html>
More information about the Darshan-commits
mailing list