Skip to content
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

resolve bug with KokkosComm::irecv, add to unit testing #90

Merged
merged 6 commits into from
Jun 18, 2024

Conversation

nicoleavans
Copy link
Collaborator

Previously, irecv was implemented in the KokkosComm namespace erroneously. This bug was not captured via unit testing because unit testing directly called Impl::irecv.

cwpearson
cwpearson previously approved these changes Jun 18, 2024
janciesko
janciesko previously approved these changes Jun 18, 2024
@janciesko
Copy link
Collaborator

janciesko commented Jun 18, 2024

clang-format check seems to be failing

@nicoleavans nicoleavans dismissed stale reviews from janciesko and cwpearson via e40bdea June 18, 2024 16:55
@@ -54,7 +54,7 @@ void test_1d(const View1D &a) {
} else if (1 == rank) {
int src = 0;
MPI_Request req;
KokkosComm::Impl::irecv(a, src, 0, MPI_COMM_WORLD, req);
KokkosComm::irecv(a, src, 0, MPI_COMM_WORLD, req);
Copy link
Collaborator

Choose a reason for hiding this comment

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

There is still a difference between isend and irecv: isend returns a request, irecv has an output parameter. Is that on purpose?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@cwpearson I just saw this, what is your opinion?

Copy link
Collaborator

Choose a reason for hiding this comment

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

We should probably have Irecv produce an output as well. I will accept this for now and open an issue against myself to implement it.

Copy link
Collaborator

Choose a reason for hiding this comment

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

#92

@cwpearson cwpearson merged commit 35929c9 into kokkos:develop Jun 18, 2024
7 checks passed
@nicoleavans nicoleavans deleted the irecv branch June 18, 2024 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants