Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Rob Latham
MPICH-BlueGene
Commits
5b188897
Commit
5b188897
authored
Oct 09, 2008
by
Rajeev Thakur
Browse files
[svn-r3262] fixed bug in SMP-aware allreduce
parent
6d1c4294
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/mpi/coll/allreduce.c
View file @
5b188897
...
...
@@ -715,6 +715,14 @@ int MPI_Allreduce ( void *sendbuf, void *recvbuf, int count,
}
if
(
mpi_errno
)
goto
fn_fail
;
}
else
{
/* only one process on the node. copy sendbuf to recvbuf */
if
(
sendbuf
!=
MPI_IN_PLACE
)
{
mpi_errno
=
MPIR_Localcopy
(
sendbuf
,
count
,
datatype
,
recvbuf
,
count
,
datatype
);
if
(
mpi_errno
)
goto
fn_fail
;
}
}
/* now do an IN_PLACE allreduce among the local roots of all nodes */
if
(
comm_ptr
->
node_roots_comm
!=
NULL
)
{
...
...
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