You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/dev/impl_comm_space.rst
+4-6Lines changed: 4 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,9 +20,8 @@ For example, for the MPI communication space, we define the following:
20
20
21
21
namespace KokkosComm {
22
22
23
-
struct Mpi {
24
-
static auto world_size() noexcept -> int { /* ... */ }
25
-
static auto world_rank() noexcept -> int { /* ... */ }
23
+
struct MpiSpace {
24
+
...
26
25
};
27
26
28
27
template <>
@@ -31,7 +30,6 @@ For example, for the MPI communication space, we define the following:
31
30
} // end KokkosComm
32
31
33
32
34
-
Notice that ``Mpi`` has two static methods, but that these methods are not required. The main point is that ``struct Mpi`` exists.
35
33
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.
36
34
37
35
@@ -71,7 +69,7 @@ For example, for the MPI communication space request, we define the following:
71
69
namespace KokkosComm {
72
70
73
71
template <>
74
-
class Req<Mpi> { /* ... */ };
72
+
class Req<MpiSpace> { /* ... */ };
75
73
76
74
} // end KokkosComm
77
75
@@ -103,7 +101,7 @@ For example, for the MPI communication space, we create a partial specialization
0 commit comments