-
Notifications
You must be signed in to change notification settings - Fork 884
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
mpi/neighbor_allgatherv: fix copy&paste error and add helpers #3863
Conversation
Punt to 3.0.1 if needed. Do not let this hold anything up. |
*outdegree = *indegree = nneighbors; | ||
} else if (OMPI_COMM_IS_DIST_GRAPH(comm)) { | ||
/* graph */ | ||
*indegree = comm->c_topo->mtc.dist_graph->indegree; |
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.
you could use mca_topo_base_dist_graph_neighbors_count()
instead
more generally speaking, is there any reason why you invoke these base functions directly instead of using the callbacks
(for example module->topo.dist_graph.dist_graph_neighbors_count()
)
@hjelmn have you and @ggouaillardet come to a consensus on this? we'd like to get this in today or latest tomorrow morning in time for an rc2. |
@hppritcha Yes. I need to add one more commit to this then it is good to go. |
This commit adds a helper function to get the inbound and outbound neighbor count and updates the neighbor_allgatherv bindings to use the correct count when checking the input parameters. Fixes open-mpi#2324 Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> (cherry picked from commit 3c0e94a) Signed-off-by: Nathan Hjelm <hjelmn@me.com>
This commit removes the communicator topo helper functions in favor of functions in mca/topo/base. Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov> (cherry picked from commit 9b702fb) Signed-off-by: Nathan Hjelm <hjelmn@lanl.gov>
24cf097
to
c19d561
Compare
ok, should be good now. |
bot:ibm:pgi:retest |
Sign off checker seems to be confused. Maybe because the commits are doubly signed. |
@ggouaillardet please recheck |
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.
my minor comment was not addressed, but that should not block this PR
This commit adds a helper function to get the inbound and outbound
neighbor count and updates the neighbor_allgatherv bindings to use the
correct count when checking the input parameters.
Fixes #2324
Signed-off-by: Nathan Hjelm hjelmn@lanl.gov
(cherry picked from commit 3c0e94a)
Signed-off-by: Nathan Hjelm hjelmn@me.com