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
72
Issues
72
List
Boards
Labels
Milestones
Merge Requests
5
Merge Requests
5
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
f4df41a3
Commit
f4df41a3
authored
Jul 21, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add slowest/fastest rank counters to mpiio
parent
a708b0ce
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
68 additions
and
1 deletion
+68
-1
darshan-mpiio-log-format.h
darshan-mpiio-log-format.h
+0
-1
darshan-runtime/lib/darshan-mpiio.c
darshan-runtime/lib/darshan-mpiio.c
+68
-0
No files found.
darshan-mpiio-log-format.h
View file @
f4df41a3
...
...
@@ -9,7 +9,6 @@
#include "darshan-log-format.h"
/* TODO: slowest/fastest rank (f)counters */
/* TODO: maybe use a counter to track cases in which a derived datatype is used? */
#define MPIIO_COUNTERS \
...
...
darshan-runtime/lib/darshan-mpiio.c
View file @
f4df41a3
...
...
@@ -1059,6 +1059,7 @@ static void mpiio_setup_reduction(
{
struct
mpiio_file_runtime
*
file
;
int
i
;
double
mpiio_time
;
assert
(
mpiio_runtime
);
...
...
@@ -1069,6 +1070,31 @@ static void mpiio_setup_reduction(
sizeof
(
darshan_record_id
),
file
);
assert
(
file
);
mpiio_time
=
file
->
file_record
->
fcounters
[
MPIIO_F_READ_TIME
]
+
file
->
file_record
->
fcounters
[
MPIIO_F_WRITE_TIME
]
+
file
->
file_record
->
fcounters
[
MPIIO_F_META_TIME
];
/* initialize fastest/slowest info prior to the reduction */
file
->
file_record
->
counters
[
MPIIO_FASTEST_RANK
]
=
file
->
file_record
->
rank
;
file
->
file_record
->
counters
[
MPIIO_FASTEST_RANK_BYTES
]
=
file
->
file_record
->
counters
[
MPIIO_BYTES_READ
]
+
file
->
file_record
->
counters
[
MPIIO_BYTES_WRITTEN
];
file
->
file_record
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
]
=
mpiio_time
;
/* until reduction occurs, we assume that this rank is both
* the fastest and slowest. It is up to the reduction operator
* to find the true min and max.
*/
file
->
file_record
->
counters
[
MPIIO_SLOWEST_RANK
]
=
file
->
file_record
->
counters
[
MPIIO_FASTEST_RANK
];
file
->
file_record
->
counters
[
MPIIO_SLOWEST_RANK_BYTES
]
=
file
->
file_record
->
counters
[
MPIIO_FASTEST_RANK_BYTES
];
file
->
file_record
->
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
]
=
file
->
file_record
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
];
file
->
file_record
->
rank
=
-
1
;
}
...
...
@@ -1228,6 +1254,48 @@ static void mpiio_record_reduction_op(
inoutfile
->
counters
[
MPIIO_MAX_WRITE_TIME_SIZE
];
}
/* min (zeroes are ok here; some procs don't do I/O) */
if
(
infile
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
]
<
inoutfile
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
])
{
tmp_file
.
counters
[
MPIIO_FASTEST_RANK
]
=
infile
->
counters
[
MPIIO_FASTEST_RANK
];
tmp_file
.
counters
[
MPIIO_FASTEST_RANK_BYTES
]
=
infile
->
counters
[
MPIIO_FASTEST_RANK_BYTES
];
tmp_file
.
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
]
=
infile
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
];
}
else
{
tmp_file
.
counters
[
MPIIO_FASTEST_RANK
]
=
inoutfile
->
counters
[
MPIIO_FASTEST_RANK
];
tmp_file
.
counters
[
MPIIO_FASTEST_RANK_BYTES
]
=
inoutfile
->
counters
[
MPIIO_FASTEST_RANK_BYTES
];
tmp_file
.
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
]
=
inoutfile
->
fcounters
[
MPIIO_F_FASTEST_RANK_TIME
];
}
/* max */
if
(
infile
->
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
]
>
inoutfile
->
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
])
{
tmp_file
.
counters
[
MPIIO_SLOWEST_RANK
]
=
infile
->
counters
[
MPIIO_SLOWEST_RANK
];
tmp_file
.
counters
[
MPIIO_SLOWEST_RANK_BYTES
]
=
infile
->
counters
[
MPIIO_SLOWEST_RANK_BYTES
];
tmp_file
.
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
]
=
infile
->
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
];
}
else
{
tmp_file
.
counters
[
MPIIO_SLOWEST_RANK
]
=
inoutfile
->
counters
[
MPIIO_SLOWEST_RANK
];
tmp_file
.
counters
[
MPIIO_SLOWEST_RANK_BYTES
]
=
inoutfile
->
counters
[
MPIIO_SLOWEST_RANK_BYTES
];
tmp_file
.
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
]
=
inoutfile
->
fcounters
[
MPIIO_F_SLOWEST_RANK_TIME
];
}
/* update pointers */
*
inoutfile
=
tmp_file
;
inoutfile
++
;
...
...
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