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

docs: irecv #89

Closed
wants to merge 5 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 27 additions & 15 deletions docs/api/core.rst
Original file line number Diff line number Diff line change
Expand Up @@ -41,43 +41,55 @@ Point-to-point

Wrapper for ``MPI_Isend``, ``MPI_Irsend`` and ``MPI_Issend``.

:param space: The execution space to operate in
:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param sv: The data to send
:param dest: the destination rank
:param tag: the MPI tag
:param comm: the MPI communicator
:tparam SendMode: A CommMode_ to use. If unspecified, defaults to a synchronous ``MPI_Issend`` if ``KOKKOSCOMM_FORCE_SYNCHRONOUS_MODE`` is defined, otherwise defaults to a standard ``MPI_Isend``.
cwpearson marked this conversation as resolved.
Show resolved Hide resolved
:tparam SendView: A Kokkos::View to send
:tparam ExecSpace: A Kokkos execution space to operate in
:tparam SendView: Type of the provided Kokkos::View
:tparam ExecSpace: Type of the provided Kokkos execution space instance
:returns: A KokkosComm::Req representing the asynchronous communication and any lifetime-extended views.

.. cpp:function:: template <KokkosComm::CommMode SendMode, KokkosExecutionSpace ExecSpace, KokkosView SendView> \
void KokkosComm::send(const ExecSpace &space, const SendView &sv, int dest, int tag, MPI_Comm comm)

Wrapper for ``MPI_Send``, ``MPI_Rsend`` and ``MPI_Ssend``.

:param space: The execution space to operate in
:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param sv: The data to send
:param dest: the destination rank
:param tag: the MPI tag
:param comm: the MPI communicator
:tparam SendMode: A CommMode_ to use. If unspecified, defaults to a synchronous ``MPI_Ssend`` if ``KOKKOSCOMM_FORCE_SYNCHRONOUS_MODE`` is defined, otherwise defaults to a standard ``MPI_Send``.
:tparam SendView: A Kokkos::View to send
:tparam ExecSpace: A Kokkos execution space to operate in
:tparam SendView: Type of the provided Kokkos::View
:tparam ExecSpace: Type of the provided Kokkos execution space instance

.. cpp:function:: template <KokkosExecutionSpace ExecSpace, KokkosView RecvView> \
void KokkosComm::recv(const ExecSpace &space, RecvView &rv, int src, int tag, MPI_Comm comm)

MPI_Recv wrapper
Wrapper for ``MPI_Recv``.

:param space: The execution space to operate in
:param srv: The data to recv
:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param rv: The data to recv
cwpearson marked this conversation as resolved.
Show resolved Hide resolved
:param src: the source rank
:param tag: the MPI tag
:param comm: the MPI communicator
:tparam Recv: A Kokkos::View to send
:tparam ExecSpace: A Kokkos execution space to operate in
:tparam RecvView: Type of the provided Kokkos::View
:tparam ExecSpace: Type of the provided Kokkos execution space instance

.. cpp:function:: template <KokkosExecutionSpace ExecSpace, KokkosView RecvView> \
Req KokkosComm::irecv(const ExecSpace &space, RecvView &rv, int src, int tag, MPI_Comm comm)

Wrapper for ``MPI_Irecv``. If ``rv`` is a managed view, the view will not be destroyed until the communication is complete.

:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param rv: The data to recv
cwpearson marked this conversation as resolved.
Show resolved Hide resolved
:param src: the source rank
:param tag: the MPI tag
:param comm: the MPI communicator
:tparam RecvView: Type of the provided Kokkos::View
:tparam ExecSpace: Type of the provided Kokkos execution space instance

Collective
----------
Expand All @@ -87,13 +99,13 @@ Collective

MPI_Reduce wrapper

:param space: The execution space to operate in
:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param sv: The data to send
:param rv: The view to receive into
:param op: The MPI_Op to use in the reduction
:param root: The root rank for the reduction
:param comm: the MPI communicator
:tparam SendView: A Kokkos::View to send
:tparam SendView: Type of the provided Kokkos::View
:tparam RecvView: A Kokkos::View to recv
:tparam ExecSpace: A Kokkos execution space to operate in

Expand All @@ -103,11 +115,11 @@ Collective

MPI_Allgather wrapper

:param space: The execution space to operate in
:param space: A Kokkos execution space instance to order the communication in and execute any required operations.
:param sv: The data to send
:param rv: The view to receive into
:param comm: the MPI communicator
:tparam SendView: A Kokkos::View to send. Contiguous and rank less than 2.
:tparam SendView: Type of the provided Kokkos::View. Contiguous and rank less than 2.
cwpearson marked this conversation as resolved.
Show resolved Hide resolved
:tparam RecvView: A Kokkos::View to recv. Contiguous and rank 1.
:tparam ExecSpace: A Kokkos execution space to operate in

Expand Down