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
37b1bb02
Commit
37b1bb02
authored
Feb 05, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add common counter aggregation to logutils
parent
bb625cbd
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
90 additions
and
4 deletions
+90
-4
darshan-util/darshan-mpiio-logutils.c
darshan-util/darshan-mpiio-logutils.c
+41
-2
darshan-util/darshan-posix-logutils.c
darshan-util/darshan-posix-logutils.c
+49
-2
No files found.
darshan-util/darshan-mpiio-logutils.c
View file @
37b1bb02
...
...
@@ -228,7 +228,10 @@ static void darshan_log_agg_mpiio_files(void *rec, void *agg_rec, int init_flag)
{
struct
darshan_mpiio_file
*
mpi_rec
=
(
struct
darshan_mpiio_file
*
)
rec
;
struct
darshan_mpiio_file
*
agg_mpi_rec
=
(
struct
darshan_mpiio_file
*
)
agg_rec
;
int
i
;
int
i
,
j
,
k
;
int
set
;
int
min_ndx
;
int64_t
min
;
double
mpi_time
=
mpi_rec
->
fcounters
[
MPIIO_F_READ_TIME
]
+
mpi_rec
->
fcounters
[
MPIIO_F_WRITE_TIME
]
+
mpi_rec
->
fcounters
[
MPIIO_F_META_TIME
];
...
...
@@ -310,8 +313,44 @@ static void darshan_log_agg_mpiio_files(void *rec, void *agg_rec, int init_flag)
case
MPIIO_SLOWEST_RANK_BYTES
:
/* these are set with the FP counters */
break
;
case
MPIIO_ACCESS1_ACCESS
:
/* increment common value counters */
for
(
j
=
i
;
j
<
i
+
4
;
j
++
)
{
min
=
agg_mpi_rec
->
counters
[
i
+
4
];
min_ndx
=
0
;
set
=
0
;
for
(
k
=
0
;
k
<
4
;
k
++
)
{
if
(
agg_mpi_rec
->
counters
[
i
+
k
]
==
mpi_rec
->
counters
[
j
])
{
agg_mpi_rec
->
counters
[
i
+
k
+
4
]
+=
mpi_rec
->
counters
[
j
+
4
];
set
=
1
;
break
;
}
else
if
(
agg_mpi_rec
->
counters
[
i
+
k
+
4
]
<
min
)
{
min
=
agg_mpi_rec
->
counters
[
i
+
k
+
4
];
min_ndx
=
k
;
}
}
if
(
!
set
&&
(
mpi_rec
->
counters
[
j
+
4
]
>
min
))
{
agg_mpi_rec
->
counters
[
i
+
min_ndx
]
=
mpi_rec
->
counters
[
j
];
agg_mpi_rec
->
counters
[
i
+
min_ndx
+
4
]
=
mpi_rec
->
counters
[
j
+
4
];
}
}
break
;
case
MPIIO_ACCESS2_ACCESS
:
case
MPIIO_ACCESS3_ACCESS
:
case
MPIIO_ACCESS4_ACCESS
:
case
MPIIO_ACCESS1_COUNT
:
case
MPIIO_ACCESS2_COUNT
:
case
MPIIO_ACCESS3_COUNT
:
case
MPIIO_ACCESS4_COUNT
:
/* these are set all at once with common counters above */
break
;
default:
/* TODO: common access sizes */
agg_mpi_rec
->
counters
[
i
]
=
-
1
;
break
;
}
...
...
darshan-util/darshan-posix-logutils.c
View file @
37b1bb02
...
...
@@ -229,7 +229,10 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag)
{
struct
darshan_posix_file
*
psx_rec
=
(
struct
darshan_posix_file
*
)
rec
;
struct
darshan_posix_file
*
agg_psx_rec
=
(
struct
darshan_posix_file
*
)
agg_rec
;
int
i
;
int
i
,
j
,
k
;
int
set
;
int
min_ndx
;
int64_t
min
;
double
psx_time
=
psx_rec
->
fcounters
[
POSIX_F_READ_TIME
]
+
psx_rec
->
fcounters
[
POSIX_F_WRITE_TIME
]
+
psx_rec
->
fcounters
[
POSIX_F_META_TIME
];
...
...
@@ -326,8 +329,52 @@ static void darshan_log_agg_posix_files(void *rec, void *agg_rec, int init_flag)
case
POSIX_SLOWEST_RANK_BYTES
:
/* these are set with the FP counters */
break
;
case
POSIX_STRIDE1_STRIDE
:
case
POSIX_ACCESS1_ACCESS
:
/* increment common value counters */
for
(
j
=
i
;
j
<
i
+
4
;
j
++
)
{
min
=
agg_psx_rec
->
counters
[
i
+
4
];
min_ndx
=
0
;
set
=
0
;
for
(
k
=
0
;
k
<
4
;
k
++
)
{
if
(
agg_psx_rec
->
counters
[
i
+
k
]
==
psx_rec
->
counters
[
j
])
{
agg_psx_rec
->
counters
[
i
+
k
+
4
]
+=
psx_rec
->
counters
[
j
+
4
];
set
=
1
;
break
;
}
else
if
(
agg_psx_rec
->
counters
[
i
+
k
+
4
]
<
min
)
{
min
=
agg_psx_rec
->
counters
[
i
+
k
+
4
];
min_ndx
=
k
;
}
}
if
(
!
set
&&
(
psx_rec
->
counters
[
j
+
4
]
>
min
))
{
agg_psx_rec
->
counters
[
i
+
min_ndx
]
=
psx_rec
->
counters
[
j
];
agg_psx_rec
->
counters
[
i
+
min_ndx
+
4
]
=
psx_rec
->
counters
[
j
+
4
];
}
}
break
;
case
POSIX_STRIDE2_STRIDE
:
case
POSIX_STRIDE3_STRIDE
:
case
POSIX_STRIDE4_STRIDE
:
case
POSIX_STRIDE1_COUNT
:
case
POSIX_STRIDE2_COUNT
:
case
POSIX_STRIDE3_COUNT
:
case
POSIX_STRIDE4_COUNT
:
case
POSIX_ACCESS2_ACCESS
:
case
POSIX_ACCESS3_ACCESS
:
case
POSIX_ACCESS4_ACCESS
:
case
POSIX_ACCESS1_COUNT
:
case
POSIX_ACCESS2_COUNT
:
case
POSIX_ACCESS3_COUNT
:
case
POSIX_ACCESS4_COUNT
:
/* these are set all at once with common counters above */
break
;
default:
/* TODO: common access counters and strides */
agg_psx_rec
->
counters
[
i
]
=
-
1
;
break
;
}
...
...
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