Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Shane Snyder
darshan
Commits
40d1dc03
Commit
40d1dc03
authored
Nov 02, 2015
by
Shane Snyder
Browse files
darshan-util updates to support partial logs
parent
98c93e0f
Changes
2
Hide whitespace changes
Inline
Side-by-side
darshan-util/darshan-job-summary/bin/darshan-job-summary.pl.in
View file @
40d1dc03
...
...
@@ -97,7 +97,6 @@ while($line = <PARSE_OUT>)
$f_save
=
"";
(
$junk
,
$cmdline
)
=
split
('
:
',
$line
,
2
);
print
("
PRE:
$cmdline
\n
");
# add escape characters if needed for special characters in
# command line
if
(
$cmdline
=~
/<unknown args>/
)
...
...
@@ -108,7 +107,6 @@ while($line = <PARSE_OUT>)
$cmdline
=
substr
(
$cmdline
,
0
,
-
14
);
}
$cmdline
=
encode
('
latex
',
$cmdline
)
.
$f_save
;
print
("
POST:
$cmdline
\n
");
}
elsif
(
$line
=~
/^# nprocs: /
)
{
...
...
@@ -135,7 +133,7 @@ while($line = <PARSE_OUT>)
(
$junk
,
$version
)
=
split
('
:
',
$line
,
2
);
$version
=~
s/^\s+//
;
}
elsif
(
$line
=~
/^# \*WARNING\*:
This Darshan log
contains incomplete data!/
)
elsif
(
$line
=~
/^# \*WARNING\*:
.*
contains incomplete data!/
)
{
$partial_flag
=
1
;
}
...
...
darshan-util/darshan-parser.c
View file @
40d1dc03
...
...
@@ -322,11 +322,6 @@ int main(int argc, char **argv)
}
/* warn user if this log file is incomplete */
if
(
fd
->
partial_flag
)
printf
(
"
\n
# *WARNING*: This Darshan log contains incomplete data!
\n
"
"# This happens when an application creates
\n
"
"# more records than Darshan can track.
\n
"
);
pdata
.
rank_cumul_io_time
=
malloc
(
sizeof
(
double
)
*
job
.
nprocs
);
pdata
.
rank_cumul_md_time
=
malloc
(
sizeof
(
double
)
*
job
.
nprocs
);
if
(
!
pdata
.
rank_cumul_io_time
||
!
pdata
.
rank_cumul_md_time
)
...
...
@@ -370,6 +365,13 @@ int main(int argc, char **argv)
printf
(
"# %s module data
\n
"
,
darshan_module_names
[
i
]);
printf
(
"# *******************************************************
\n
"
);
/* print warning if this module only stored partial data */
if
(
DARSHAN_MOD_FLAG_ISSET
(
fd
->
partial_flag
,
i
))
printf
(
"
\n
# *WARNING*: The %s module contains incomplete data!
\n
"
"# This happens when a module runs out of
\n
"
"# memory to store new record data.
\n
"
,
darshan_module_names
[
i
]);
if
(
mask
&
OPTION_BASE
)
{
/* TODO: does each module print header of what each counter means??? */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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