Skip to content

mpi/neighbor_allgatherv: fix copy&paste error and add helpers #2334

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

Merged
merged 1 commit into from
Jul 12, 2017

Conversation

hjelmn
Copy link
Member

@hjelmn hjelmn commented Nov 1, 2016

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 [email protected]

@@ -194,6 +194,9 @@ OMPI_DECLSPEC int
mca_topo_base_dist_graph_neighbors_count(ompi_communicator_t *comm,
int *inneighbors, int *outneighbors, int *weighted);


Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have a ompi_comm_neighbors_count subroutine that does the same think (at least at first glance)
that being said, your new subroutine only uses internal subroutine (vs MPI_*) so i like it better.

should we only keep your subroutine ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ompi_comm_neighbors_count using MPI_* interfaces interfere with MPI profiling. I'm in favor of the new routine. Moreover, the new routine should be used everywhere and the former should be removed.

@dalcinl
Copy link
Contributor

dalcinl commented Nov 2, 2016

@hjelmn Please also fix the check if (NULL == displs) ... the following way

if (in_size > 0 && NULL == displs) {
    return OMPI_ERRHANDLER_INVOKE(comm, MPI_ERR_BUFFER, FUNC_NAME);
}

@jsquyres
Copy link
Member

@hjelmn Looks like this PR still needs some work.

@ibm-ompi
Copy link

The IBM CI (PGI Compiler) build failed! Please review the log, linked below.

Gist: https://gist.github.com/752b78b8734de54ad555409612822542

@hppritcha
Copy link
Member

@hjelmn please take a look at this.

@hjelmn
Copy link
Member Author

hjelmn commented May 26, 2017

Ok, should be better now. @ggouaillardet Please take a look.

@hppritcha
Copy link
Member

bot:ompi:retest

@hppritcha hppritcha modified the milestone: v2.0.3 Jun 1, 2017
@hppritcha
Copy link
Member

bot:ompi:retest

@hjelmn
Copy link
Member Author

hjelmn commented Jul 12, 2017

:bot:retest:

@open-mpi open-mpi deleted a comment from ibm-ompi Jul 12, 2017
@jjhursey
Copy link
Member

bot:ibm:pgi:retest

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 <[email protected]>
@hjelmn hjelmn merged commit 3c0e94a into open-mpi:master Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants