Skip to content

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

Merged
cwpearson merged 6 commits intokokkos:developfrom
nicoleavans:irecv
Jun 18, 2024
Merged

resolve bug with KokkosComm::irecv, add to unit testing#90
cwpearson merged 6 commits intokokkos:developfrom
nicoleavans:irecv

Conversation

@nicoleavans
Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
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
Copy Markdown
Contributor

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
Copy Markdown
Contributor 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
Copy Markdown
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
Copy Markdown
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
@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