-
Notifications
You must be signed in to change notification settings - Fork 903
SHMEM/SCOLL: Fix inplace reductions #8041
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The IBM CI (PGI) build failed! Please review the log, linked below. Gist: https://gist.github.com/ibm-ompi/88b480fb98dfd2bdac939f023e1f8fe6 |
The IBM CI (GNU/Scale) build failed! Please review the log, linked below. Gist: https://gist.github.com/ibm-ompi/88b480fb98dfd2bdac939f023e1f8fe6 |
The IBM CI (XL) build failed! Please review the log, linked below. Gist: https://gist.github.com/ibm-ompi/88b480fb98dfd2bdac939f023e1f8fe6 |
bot:ibm:retest |
@yosefe, ok to merge? |
oshmem/mca/scoll/mpi/scoll_mpi_ops.c
Outdated
if (source == target) { | ||
sbuf = MPI_IN_PLACE; | ||
rbuf = source; | ||
} else { | ||
sbuf = (void *) source; | ||
rbuf = target; | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sbuf = (source == target) ? MPI_IN_PLACE : source
rbuf = target
Signed-off-by: Mikhail Brinskii <[email protected]>
5a89fd4
to
dfe20e0
Compare
This was already fixed on the master/v5.0.x branch by open-mpi#8041: dfe20e0 This reverts commit 1ddcfcc. Signed-off-by: Austen Lauria <[email protected]>
According to shmem spec source and dest arrays can be the same for reductions:
The source and dest arrays may be the same array, but they may not be overlapping arrays.
If this is the case and MPI scoll is used, need to specify MPI_IN_PLACE instead of real source buffer for allreduce
Fixes openucx/ucx#5627
Signed-off-by: Mikhail Brinskii [email protected]