Commit 32219e29 authored by Philip Carns's avatar Philip Carns

integrate darshan-summary-per-file.sh utility, written by Rob Latham


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@755 3b7491f3-a168-0410-bf4b-c445ed680a29
parent ecec3bb8
......@@ -77,6 +77,7 @@ install:: all
install -m 755 darshan-convert $(bindir)
install -m 755 darshan-diff $(bindir)
install -m 755 darshan-analyzer $(bindir)
install -m 755 $(srcdir)/darshan-summary-per-file.sh $(bindir)
install -m 755 libdarshan-util.a $(libdir)
install -m 644 $(srcdir)/darshan-logutils.h $(includedir)
install -m 644 $(DARSHAN_LOG_FORMAT) $(includedir)
......
#!/bin/sh
#
# (C) 2013 by Argonne National Laboratory.
# See COPYRIGHT in top-level directory.
#
if [ $# -ne 2 ]; then
echo "Usage: darshan-summary-per-file.sh <input_file.gz> <output_directory>"
exit 1
fi
mkdir $2
rc=$?
if [ $rc -ne 0 ]; then
exit $rc
fi
darshan-parser --file-list $1| egrep -v '^(#|$)' |
while read -r hash suffix stuff ; do
file=$(basename $suffix)
if [ -x $file.gz ] ; then
$file = $file.$hash.gz
fi
darshan-convert --file $hash $1 $2/$file.gz
darshan-job-summary.pl $2/$file.gz --output $2/$file.pdf
done
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment