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
71
Issues
71
List
Boards
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
5a14a88b
Commit
5a14a88b
authored
Apr 07, 2015
by
Shane Snyder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
shared file reduction bug fix
parent
3fae9404
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
darshan-runtime/lib/darshan-core.c
darshan-runtime/lib/darshan-core.c
+1
-1
darshan-runtime/lib/darshan-mpiio.c
darshan-runtime/lib/darshan-mpiio.c
+11
-0
No files found.
darshan-runtime/lib/darshan-core.c
View file @
5a14a88b
...
...
@@ -1147,7 +1147,7 @@ static void darshan_get_shared_records(struct darshan_core_runtime *core,
* which modules accessed them collectively
*/
DARSHAN_MPI_CALL
(
PMPI_Allreduce
)(
mod_flags
,
global_mod_flags
,
DARSHAN_CORE_MAX_RECORDS
,
MPI_UINT64_T
,
MPI_
L
AND
,
MPI_COMM_WORLD
);
DARSHAN_CORE_MAX_RECORDS
,
MPI_UINT64_T
,
MPI_
B
AND
,
MPI_COMM_WORLD
);
ndx
=
0
;
for
(
i
=
0
;
(
i
<
DARSHAN_CORE_MAX_RECORDS
&&
id_array
[
i
]
!=
0
);
i
++
)
...
...
darshan-runtime/lib/darshan-mpiio.c
View file @
5a14a88b
...
...
@@ -263,6 +263,17 @@ static void mpiio_get_output_data(
assert
(
mpiio_runtime
);
/* TODO: clean up reduction stuff */
if
(
my_rank
==
0
)
{
int
tmp_ndx
=
mpiio_runtime
->
file_array_ndx
-
mpiio_runtime
->
shared_rec_count
;
memcpy
(
&
(
mpiio_runtime
->
file_record_array
[
tmp_ndx
]),
mpiio_runtime
->
red_buf
,
mpiio_runtime
->
shared_rec_count
*
sizeof
(
struct
darshan_mpiio_file
));
free
(
mpiio_runtime
->
red_buf
);
}
else
{
mpiio_runtime
->
file_array_ndx
-=
mpiio_runtime
->
shared_rec_count
;
}
*
buffer
=
(
void
*
)(
mpiio_runtime
->
file_record_array
);
*
size
=
mpiio_runtime
->
file_array_ndx
*
sizeof
(
struct
darshan_mpiio_file
);
...
...
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