Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
darshan
darshan
Commits
a6e86829
Commit
a6e86829
authored
Jun 07, 2016
by
Shane Snyder
Browse files
bug fixes in summary per file tool
parent
08855b48
Changes
1
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-summary-per-file.sh
View file @
a6e86829
...
...
@@ -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
...
...
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