Skip to content

Commit

Permalink
example docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cwpearson committed Dec 19, 2023
1 parent b88a24a commit 19ba79f
Show file tree
Hide file tree
Showing 6 changed files with 40 additions and 1 deletion.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ ctest

[cwpearson.github.io/kokkos-comm/](https://cwpearson.github.io/kokkos-comm/)

https://www.sphinx-doc.org/en/master/usage/domains/cpp.html

## Design

- [x] use `Kokkos::deep_copy` to handle packing and unpacking of non-contiguous views
Expand Down
2 changes: 2 additions & 0 deletions docs/api/collective.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Collective Communication
========================
15 changes: 15 additions & 0 deletions docs/api/p2p.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
Point-to-point
==============

.. cpp:function:: template <typename SendView, typename ExecSpace> \
void Kokkos::send(const ExecSpace &space, const SendView &sv, int dest, int tag, MPI_Comm comm)

MPI_Send wrapper.

:param space: The execution space to operate in
:param sv: The data to send
:param dest: the destination rank
:param tag: the MPI tag
:param comm: the MPI communicator
:tparam SendView: A Kokkos::View to send
:tparam ExecSpace: A Kokkos execution space to operate in
6 changes: 6 additions & 0 deletions docs/api/traits.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Traits
======

.. cpp:type:: KokkosComm::Traits

Blah blah
14 changes: 13 additions & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,25 @@
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to KokkosComm's documentation!
KokkosComm documentation!
======================================

.. toctree::
:maxdepth: 2
:caption: Contents:

api/traits
api/p2p
api/collective

Usage
-----

.. toctree::
:maxdepth: 2
:caption: Contents:

usage/getting_started


Indices and tables
Expand Down
2 changes: 2 additions & 0 deletions docs/usage/getting_started.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Getting Started
===============

0 comments on commit 19ba79f

Please sign in to comment.