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
47a6c64a
Commit
47a6c64a
authored
Feb 19, 2016
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix in reduction of min nonzero counters
parent
0a6399f3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
16 additions
and
13 deletions
+16
-13
darshan-runtime/lib/darshan-hdf5.c
darshan-runtime/lib/darshan-hdf5.c
+4
-3
darshan-runtime/lib/darshan-mpiio.c
darshan-runtime/lib/darshan-mpiio.c
+4
-3
darshan-runtime/lib/darshan-pnetcdf.c
darshan-runtime/lib/darshan-pnetcdf.c
+4
-3
darshan-runtime/lib/darshan-posix.c
darshan-runtime/lib/darshan-posix.c
+4
-4
No files found.
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
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