Skip to content

Commit 13f4dd9

Browse files
committed
Converted 55 files from nroff to markdown
Signed-off-by: Colton Kammes <[email protected]>
1 parent 47fb05f commit 13f4dd9

File tree

111 files changed

+4884
-4902
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

111 files changed

+4884
-4902
lines changed

ompi/mpi/man/man3/MPI_Comm_f2c.3in

Lines changed: 0 additions & 49 deletions
This file was deleted.

ompi/mpi/man/man3/MPI_Comm_f2c.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Name
2+
3+
`MPI_Comm_f2c`, `MPI_Comm_c2f`, `MPI_File_f2c`, `MPI_File_c2f`, `MPI_Info_f2c,`
4+
`MPI_Info_c2f`, `MPI_Message_f2c`, `MPI_Message_c2f`, `MPI_Op_f2c`, `MPI_Op_c2f,`
5+
`MPI_Request_f2c`, `MPI_Request_c2f`, `MPI_Type_f2c`, `MPI_Type_c2f`,
6+
`MPI_Win_f2c`, `MPI_Win_c2f` - Translates a C handle into a Fortran
7+
handle, or vice versa.
8+
9+
# Syntax
10+
11+
## C Syntax
12+
13+
```c
14+
#include <mpi.h>
15+
16+
MPI_Comm MPI_Comm_f2c(MPI_Fint comm)
17+
MPI_Fint MPI_Comm_c2f(MPI_Comm comm)
18+
19+
MPI_File MPI_File_f2c(MPI_Fint file)
20+
MPI_Fint MPI_File_c2f(MPI_File file)
21+
22+
MPI_Group MPI_Group_f2c(MPI Fint group)
23+
MPI_Fint MPI_Group_c2f(MPI Group group)
24+
25+
MPI_Info MPI_Info_f2c(MPI_Fint info)
26+
MPI_Fint MPI_Info_c2f(MPI_Info info)
27+
28+
MPI_Message MPI_Message_f2c(MPI_Fint message)
29+
MPI_Fint MPI_Message_c2f(MPI_Message message)
30+
31+
MPI_Op MPI_Op_f2c(MPI_Fint op)
32+
MPI_Fint MPI_Op_c2f(MPI_Op op)
33+
34+
MPI_Request MPI_Request_f2c(MPI_Fint request)
35+
MPI_Fint MPI_Request_c2f(MPI_Request request)
36+
37+
MPI_Datatype MPI_Type_f2c(MPI_Fint datatype)
38+
MPI_Fint MPI_Type_c2f(MPI_Datatype datatype)
39+
40+
MPI_Win MPI_Win_f2c(MPI_Fint win)
41+
MPI_Fint MPI_Win_c2f(MPI_Win win)
42+
```
43+
44+
# Description
45+
46+
Handles are passed between Fortran and C by using an explicit C wrapper
47+
to convert Fortran handles to C handles. There is no direct access to C
48+
handles in Fortran. The type definition `MPI_Fint` is provided in C for
49+
an integer of the size that matches a Fortran INTEGER; usually,
50+
`MPI_Fint` will be equivalent to int. The handle translation functions
51+
are provided in C to convert from a Fortran handle (which is an integer)
52+
to a C handle, and vice versa.
53+
54+
For example, if `comm` is a valid Fortran handle to a communicator, then
55+
`MPI_Comm_f2c` returns a valid C handle to that same communicator; if
56+
`comm` = `MPI_COMM_NULL` (Fortran value), then `MPI_Comm_f2c` returns a null
57+
C handle; if `comm` is an invalid Fortran handle, then `MPI_Comm_f2c`
58+
returns an invalid C handle.
59+
60+
# Note
61+
62+
This function does not return an error value. Consequently, the result
63+
of calling it before `MPI_Init` or after `MPI_Finalize` is undefined.

ompi/mpi/man/man3/MPI_Comm_free.3in

Lines changed: 0 additions & 69 deletions
This file was deleted.

ompi/mpi/man/man3/MPI_Comm_free.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Name
2+
3+
`MPI_Comm_free` - Mark a communicator object for deallocation.
4+
5+
# Syntax
6+
7+
## C Syntax
8+
9+
```c
10+
#include <mpi.h>
11+
12+
int MPI_Comm_free(MPI_Comm *comm)
13+
```
14+
15+
## Fortran Syntax
16+
17+
```fortran
18+
USE MPI
19+
! or the older form: INCLUDE 'mpif.h'
20+
21+
MPI_COMM_FREE(COMM, IERROR)
22+
INTEGER COMM, IERROR
23+
```
24+
25+
## Fortran 2008 Syntax
26+
27+
```fortran
28+
USE mpi_f08
29+
30+
MPI_Comm_free(comm, ierror)
31+
TYPE(MPI_Comm), INTENT(INOUT) :: comm
32+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
33+
```
34+
35+
36+
# Input Parameter
37+
38+
* `comm` : Communicator to be destroyed (handle).
39+
40+
# Output Parameter
41+
42+
* `IERROR` : Fortran only: Error status (integer).
43+
44+
# Description
45+
46+
This operation marks the communicator object for deallocation. The
47+
handle is set to `MPI_COMM_NULL`. Any pending operations that use this
48+
communicator will complete normally; the object is actually deallocated
49+
only if there are no other active references to it. This call applies to
50+
intracommunicators and intercommunicators. Upon actual deallocation, the
51+
delete callback functions for all cached attributes (see Section 5.7 in
52+
the MPI-1 Standard, "Caching") are called in arbitrary order.
53+
54+
# Notes
55+
56+
Note that it is not defined by the MPI standard what happens if the
57+
`delete_fn` callback invokes other MPI functions. In Open MPI, it is not
58+
valid for `delete_fn` callbacks (or any of their children) to add or
59+
delete attributes on the same object on which the `delete_fn` callback is
60+
being invoked.
61+
62+
# Errors
63+
64+
Almost all MPI routines return an error value; C routines as the value
65+
of the function and Fortran routines in the last argument.
66+
Before the error value is returned, the current MPI error handler is
67+
called. By default, this error handler aborts the MPI job, except for
68+
I/O function errors. The error handler may be changed with
69+
`MPI_Comm_set_errhandler`; the predefined error handler `MPI_ERRORS_RETURN`
70+
may be used to cause error values to be returned. Note that MPI does not
71+
guarantee that an MPI program can continue past an error.
72+
73+
# See Also
74+
75+
[`MPI_Comm_delete_attr(3)`](./?file=MPI_Comm_delete_attr.md)

ompi/mpi/man/man3/MPI_Comm_free_keyval.3in

Lines changed: 0 additions & 63 deletions
This file was deleted.
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Name
2+
3+
`MPI_Comm_free_keyval` - Frees attribute key for communicator cache
4+
attribute.
5+
6+
# Syntax
7+
8+
## C Syntax
9+
10+
```c
11+
#include <mpi.h>
12+
13+
int MPI_Comm_free_keyval(int *comm_keyval)
14+
```
15+
16+
## Fortran Syntax
17+
18+
```fortran
19+
USE MPI
20+
! or the older form: INCLUDE 'mpif.h'
21+
22+
MPI_COMM_FREE_KEYVAL(COMM_KEYVAL, IERROR)
23+
INTEGER COMM_KEYVAL, IERROR
24+
```
25+
26+
## Fortran 2008 Syntax
27+
28+
```fortran
29+
USE mpi_f08
30+
31+
MPI_Comm_free_keyval(comm_keyval, ierror)
32+
INTEGER, INTENT(INOUT) :: comm_keyval
33+
INTEGER, OPTIONAL, INTENT(OUT) :: ierror
34+
```
35+
36+
37+
# Input/Output Parameter
38+
39+
* `comm_keyval`
40+
41+
# Output Parameter
42+
43+
* `IERROR` : Fortran only: Error status (integer).
44+
45+
# Description
46+
47+
`MPI_Comm_free_keyval` frees an extant attribute key. This function sets
48+
the value of `keyval` to `MPI_KEYVAL_INVALID`. Note that it is not
49+
erroneous to free an attribute key that is in use, because the actual
50+
free does not transpire until after all references (in other
51+
communicators on the process) to the key have been freed. These
52+
references need to be explicitly freed by the program, either via calls
53+
to `MPI_Comm_delete_attr` that free one attribute instance, or by calls to
54+
`MPI_Comm_free` that free all attribute instances associated with the
55+
freed communicator.
56+
57+
This call is identical to the call `MPI_Keyval_free` but is needed to
58+
match the communicator-specific creation function introduced in the
59+
MPI-2 standard. The use of `MPI_Keyval_free` is deprecated.
60+
61+
# Notes
62+
63+
Key values are global (they can be used with any and all communicators).
64+
65+
# Errors
66+
67+
Almost all MPI routines return an error value; C routines as the value
68+
of the function and Fortran routines in the last argument.
69+
Before the error value is returned, the current MPI error handler is
70+
called. By default, this error handler aborts the MPI job, except for
71+
I/O function errors. The error handler may be changed with
72+
`MPI_Comm_set_errhandler`; the predefined error handler `MPI_ERRORS_RETURN`
73+
may be used to cause error values to be returned. Note that MPI does not
74+
guarantee that an MPI program can continue past an error.

0 commit comments

Comments
 (0)