Skip to content

Commit c620fef

Browse files
Update documentation
Signed-off-by: Cedric Chevalier <[email protected]>
1 parent c899027 commit c620fef

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

docs/dev/impl_comm_space.rst

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@ For example, for the MPI communication space, we define the following:
2020
2121
namespace KokkosComm {
2222
23-
struct Mpi {
24-
static auto world_size() noexcept -> int { /* ... */ }
25-
static auto world_rank() noexcept -> int { /* ... */ }
23+
struct MpiSpace {
24+
...
2625
};
2726
2827
template <>
@@ -31,7 +30,6 @@ For example, for the MPI communication space, we define the following:
3130
} // end KokkosComm
3231
3332
34-
Notice that ``Mpi`` has two static methods, but that these methods are not required. The main point is that ``struct Mpi`` exists.
3533
To let core API functions know that your communication space is something KokkosComm can use to dispatch messages, you also need to declare the ``Impl::is_communication_space`` specialization using the ``CommunicationSpace`` concept.
3634

3735

@@ -71,7 +69,7 @@ For example, for the MPI communication space request, we define the following:
7169
namespace KokkosComm {
7270
7371
template <>
74-
class Req<Mpi> { /* ... */ };
72+
class Req<MpiSpace> { /* ... */ };
7573
7674
} // end KokkosComm
7775
@@ -103,7 +101,7 @@ For example, for the MPI communication space, we create a partial specialization
103101
namespace KokkosComm::Impl {
104102
105103
template <KokkosView RecvView, KokkosExecutionSpace ExecSpace>
106-
struct Recv<RecvView, ExecSpace, Mpi> { /* ... */ };
104+
struct Recv<RecvView, ExecSpace, MpiSpace> { /* ... */ };
107105
108106
} // end KokkosComm::Impl
109107

0 commit comments

Comments
 (0)