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
Sudheer Chunduri
darshan
Commits
47a6c64a
Commit
47a6c64a
authored
Feb 19, 2016
by
Shane Snyder
Browse files
bug fix in reduction of min nonzero counters
parent
0a6399f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
darshan-runtime/lib/darshan-hdf5.c
View file @
47a6c64a
...
...
@@ -428,10 +428,11 @@ static void hdf5_record_reduction_op(void* infile_v, void* inoutfile_v,
/* min non-zero (if available) value */
for
(
j
=
HDF5_F_OPEN_TIMESTAMP
;
j
<=
HDF5_F_OPEN_TIMESTAMP
;
j
++
)
{
if
(
infile
->
fcounters
[
j
]
>
inoutfile
->
fcounters
[
j
]
&&
inoutfile
->
fcounters
[
j
]
>
0
)
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
else
if
((
infile
->
fcounters
[
j
]
<
inoutfile
->
fcounters
[
j
]
&&
infile
->
fcounters
[
j
]
>
0
)
||
inoutfile
->
fcounters
[
j
]
==
0
)
tmp_file
.
fcounters
[
j
]
=
infile
->
fcounters
[
j
];
else
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
}
/* max */
...
...
darshan-runtime/lib/darshan-mpiio.c
View file @
47a6c64a
...
...
@@ -1096,10 +1096,11 @@ static void mpiio_record_reduction_op(
/* min non-zero (if available) value */
for
(
j
=
MPIIO_F_OPEN_TIMESTAMP
;
j
<=
MPIIO_F_WRITE_START_TIMESTAMP
;
j
++
)
{
if
(
infile
->
fcounters
[
j
]
>
inoutfile
->
fcounters
[
j
]
&&
inoutfile
->
fcounters
[
j
]
>
0
)
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
else
if
((
infile
->
fcounters
[
j
]
<
inoutfile
->
fcounters
[
j
]
&&
infile
->
fcounters
[
j
]
>
0
)
||
inoutfile
->
fcounters
[
j
]
==
0
)
tmp_file
.
fcounters
[
j
]
=
infile
->
fcounters
[
j
];
else
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
}
/* max */
...
...
darshan-runtime/lib/darshan-pnetcdf.c
View file @
47a6c64a
...
...
@@ -440,10 +440,11 @@ static void pnetcdf_record_reduction_op(void* infile_v, void* inoutfile_v,
/* min non-zero (if available) value */
for
(
j
=
PNETCDF_F_OPEN_TIMESTAMP
;
j
<=
PNETCDF_F_OPEN_TIMESTAMP
;
j
++
)
{
if
(
infile
->
fcounters
[
j
]
>
inoutfile
->
fcounters
[
j
]
&&
inoutfile
->
fcounters
[
j
]
>
0
)
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
else
if
((
infile
->
fcounters
[
j
]
<
inoutfile
->
fcounters
[
j
]
&&
infile
->
fcounters
[
j
]
>
0
)
||
inoutfile
->
fcounters
[
j
]
==
0
)
tmp_file
.
fcounters
[
j
]
=
infile
->
fcounters
[
j
];
else
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
}
/* max */
...
...
darshan-runtime/lib/darshan-posix.c
View file @
47a6c64a
...
...
@@ -1829,11 +1829,11 @@ static void posix_record_reduction_op(void* infile_v, void* inoutfile_v,
/* min non-zero (if available) value */
for
(
j
=
POSIX_F_OPEN_TIMESTAMP
;
j
<=
POSIX_F_WRITE_START_TIMESTAMP
;
j
++
)
{
if
(
infile
->
fcounters
[
j
]
>
inoutfile
->
fcounters
[
j
]
&&
inoutfile
->
fcounters
[
j
]
>
0
)
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
else
if
((
infile
->
fcounters
[
j
]
<
inoutfile
->
fcounters
[
j
]
&&
infile
->
fcounters
[
j
]
>
0
)
||
inoutfile
->
fcounters
[
j
]
==
0
)
tmp_file
.
fcounters
[
j
]
=
infile
->
fcounters
[
j
];
else
tmp_file
.
fcounters
[
j
]
=
inoutfile
->
fcounters
[
j
];
}
/* max */
...
...
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