Skip to content

Commit ca95656

Browse files
authored
add docs page for point-to-point (#318)
1 parent 0a643dc commit ca95656

File tree

6 files changed

+266
-182
lines changed

6 files changed

+266
-182
lines changed

docs/make.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ makedocs(
4848
"Reference" => [
4949
"environment.md",
5050
"comm.md",
51+
"pointtopoint.md",
5152
],
5253
"functions.md",
5354
]

docs/src/comm.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ each process a unique *rank* (see [`MPI.Comm_rank`](@ref)) taking an integer val
66
`0:n-1`, where `n` is the number of processes in the communicator (see
77
[`MPI.Comm_size`](@ref).
88

9+
## Types
10+
11+
```@docs
12+
MPI.Comm
13+
```
14+
915
## Constants
1016

1117
```@docs
@@ -15,14 +21,26 @@ MPI.COMM_SELF
1521

1622
## Functions
1723

24+
### Accessors
25+
26+
```@docs
27+
MPI.Comm_size
28+
MPI.Comm_rank
29+
```
30+
31+
### Constructors
32+
1833
```@docs
1934
MPI.Comm_dup
2035
MPI.Comm_get_parent
21-
MPI.Comm_rank
22-
MPI.Comm_size
2336
MPI.Comm_spawn
2437
MPI.Comm_split
2538
MPI.Comm_split_type
2639
MPI.Intercomm_merge
40+
```
41+
42+
### Miscellaneous
43+
44+
```
2745
MPI.universe_size
2846
```

docs/src/functions.md

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -24,45 +24,6 @@ MPI.Get_address
2424
MPI.mpitype
2525
```
2626

27-
## Point-to-point communication
28-
29-
Julia Function (assuming `import MPI`) | Fortran Function
30-
---------------------------------------|--------------------------------------------------------
31-
[`MPI.Cancel!`](@ref) | [`MPI_Cancel`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Cancel.3.php)
32-
[`MPI.Get_count`](@ref) | [`MPI_Get_count`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Get_count.3.php)
33-
[`MPI.Iprobe`](@ref) | [`MPI_Iprobe`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Iprobe.3.php)
34-
[`MPI.Irecv!`](@ref) | [`MPI_Irecv`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Irecv.3.php)
35-
[`MPI.Isend`](@ref) | [`MPI_Isend`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Isend.3.php)
36-
[`MPI.Probe`](@ref) | [`MPI_Probe`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Probe.3.php)
37-
[`MPI.Recv!`](@ref) | [`MPI_Recv`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Recv.3.php)
38-
[`MPI.Send`](@ref) | [`MPI_Send`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Send.3.php)
39-
[`MPI.Test!`](@ref) | [`MPI_Test`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Test.3.php)
40-
[`MPI.Testall!`](@ref) | [`MPI_Testall`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Testall.3.php)
41-
[`MPI.Testany!`](@ref) | [`MPI_Testany`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Testany.3.php)
42-
[`MPI.Testsome!`](@ref) | [`MPI_Testsome`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Testsome.3.php)
43-
[`MPI.Wait!`](@ref) | [`MPI_Wait`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Wait.3.php)
44-
[`MPI.Waitall!`](@ref) | [`MPI_Waitall`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Waitall.3.php)
45-
[`MPI.Waitany!`](@ref) | [`MPI_Waitany`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Waitany.3.php)
46-
[`MPI.Waitsome!`](@ref) | [`MPI_Waitsome`](https://www.open-mpi.org/doc/v1.10/man3/MPI_Waitsome.3.php)
47-
48-
```@docs
49-
MPI.Cancel!
50-
MPI.Get_count
51-
MPI.Iprobe
52-
MPI.Irecv!
53-
MPI.Isend
54-
MPI.Probe
55-
MPI.Recv!
56-
MPI.Send
57-
MPI.Test!
58-
MPI.Testall!
59-
MPI.Testany!
60-
MPI.Testsome!
61-
MPI.Wait!
62-
MPI.Waitall!
63-
MPI.Waitany!
64-
MPI.Waitsome!
65-
```
6627

6728
## Collective communication
6829

docs/src/pointtopoint.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Point-to-point communication
2+
3+
## Types
4+
5+
```@docs
6+
MPI.Request
7+
MPI.Status
8+
```
9+
10+
## Functions
11+
12+
### Accessor
13+
14+
```@docs
15+
MPI.Get_count
16+
```
17+
18+
### Blocking
19+
20+
```@docs
21+
MPI.Send
22+
MPI.Recv!
23+
MPI.Sendrecv
24+
```
25+
26+
### Non-blocking
27+
28+
```@docs
29+
MPI.Isend
30+
MPI.Irecv!
31+
MPI.Test!
32+
MPI.Testall!
33+
MPI.Testany!
34+
MPI.Testsome!
35+
MPI.Wait!
36+
MPI.Waitall!
37+
MPI.Waitany!
38+
MPI.Waitsome!
39+
```
40+
41+
### Probe and cancel
42+
43+
```@docs
44+
MPI.Iprobe
45+
MPI.Probe
46+
MPI.Cancel!
47+
```
48+
49+

src/comm.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
"""
2+
MPI.Comm
3+
4+
An MPI Communicator object.
5+
"""
16
@mpi_handle Comm
27

38
const COMM_NULL = _Comm(MPI_COMM_NULL)

0 commit comments

Comments
 (0)