|
Packit Service |
c5cf8c |
.TH MPI_Win_create 3 "11/12/2019" " " "MPI"
|
|
Packit Service |
c5cf8c |
.SH NAME
|
|
Packit Service |
c5cf8c |
MPI_Win_create \- Create an MPI Window object for one-sided communication
|
|
Packit Service |
c5cf8c |
.SH SYNOPSIS
|
|
Packit Service |
c5cf8c |
.nf
|
|
Packit Service |
c5cf8c |
int MPI_Win_create(void *base, MPI_Aint size, int disp_unit, MPI_Info info,
|
|
Packit Service |
c5cf8c |
MPI_Comm comm, MPI_Win * win)
|
|
Packit Service |
c5cf8c |
.fi
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
This is a collective call executed by all processes in the group of comm. It
|
|
Packit Service |
c5cf8c |
returns a window object that can be used by these processes to perform RMA
|
|
Packit Service |
c5cf8c |
operations. Each process specifies a window of existing memory that it exposes
|
|
Packit Service |
c5cf8c |
to RMA accesses by the processes in the group of comm. The window consists of
|
|
Packit Service |
c5cf8c |
size bytes, starting at address base. In C, base is the starting address of a
|
|
Packit Service |
c5cf8c |
memory region. In Fortran, one can pass the first element of a memory region or
|
|
Packit Service |
c5cf8c |
a whole array, which must be 'simply contiguous' (for 'simply contiguous', see
|
|
Packit Service |
c5cf8c |
also MPI 3.0, Section 17.1.12 on page 626). A process may elect to expose no
|
|
Packit Service |
c5cf8c |
memory by specifying size = 0.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH INPUT PARAMETERS
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B base
|
|
Packit Service |
c5cf8c |
- initial address of window (choice)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B size
|
|
Packit Service |
c5cf8c |
- size of window in bytes (nonnegative integer)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B disp_unit
|
|
Packit Service |
c5cf8c |
- local unit size for displacements, in bytes (positive integer)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B info
|
|
Packit Service |
c5cf8c |
- info argument (handle)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B comm
|
|
Packit Service |
c5cf8c |
- communicator (handle)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH OUTPUT PARAMETERS
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B win
|
|
Packit Service |
c5cf8c |
- window object returned by the call (handle)
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH NOTES
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
The displacement unit argument is provided to facilitate address arithmetic in
|
|
Packit Service |
c5cf8c |
RMA operations: the target displacement argument of an RMA operation is scaled
|
|
Packit Service |
c5cf8c |
by the factor disp_unit specified by the target process, at window creation.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
The info argument provides optimization hints to the runtime about the expected
|
|
Packit Service |
c5cf8c |
usage pattern of the window. The following info keys are predefined.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B no_locks
|
|
Packit Service |
c5cf8c |
- If set to true, then the implementation may assume that passive
|
|
Packit Service |
c5cf8c |
target synchronization (i.e.,
|
|
Packit Service |
c5cf8c |
.I MPI_Win_lock
|
|
Packit Service |
c5cf8c |
,
|
|
Packit Service |
c5cf8c |
.I MPI_Win_lock_all
|
|
Packit Service |
c5cf8c |
) will not be used on
|
|
Packit Service |
c5cf8c |
the given window. This implies that this window is not used for 3-party
|
|
Packit Service |
c5cf8c |
communication, and RMA can be implemented with no (less) asynchronous agent
|
|
Packit Service |
c5cf8c |
activity at this process.
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B accumulate_ordering
|
|
Packit Service |
c5cf8c |
- Controls the ordering of accumulate operations at the
|
|
Packit Service |
c5cf8c |
target. The argument string should contain a comma-separated list of the
|
|
Packit Service |
c5cf8c |
following read/write ordering rules, where e.g. "raw" means read-after-write:
|
|
Packit Service |
c5cf8c |
"rar,raw,war,waw".
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B accumulate_ops
|
|
Packit Service |
c5cf8c |
- If set to same_op, the implementation will assume that all
|
|
Packit Service |
c5cf8c |
concurrent accumulate calls to the same target address will use the same
|
|
Packit Service |
c5cf8c |
operation. If set to same_op_no_op, then the implementation will assume that
|
|
Packit Service |
c5cf8c |
all concurrent accumulate calls to the same target address will use the same
|
|
Packit Service |
c5cf8c |
operation or
|
|
Packit Service |
c5cf8c |
.I MPI_NO_OP
|
|
Packit Service |
c5cf8c |
\&.
|
|
Packit Service |
c5cf8c |
This can eliminate the need to protect access for
|
|
Packit Service |
c5cf8c |
certain operation types where the hardware can guarantee atomicity. The default
|
|
Packit Service |
c5cf8c |
is same_op_no_op.
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH THREAD AND INTERRUPT SAFETY
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
This routine is thread-safe. This means that this routine may be
|
|
Packit Service |
c5cf8c |
safely used by multiple threads without the need for any user-provided
|
|
Packit Service |
c5cf8c |
thread locks. However, the routine is not interrupt safe. Typically,
|
|
Packit Service |
c5cf8c |
this is due to the use of memory allocation routines such as
|
|
Packit Service |
c5cf8c |
.I malloc
|
|
Packit Service |
c5cf8c |
or other non-MPICH runtime routines that are themselves not interrupt-safe.
|
|
Packit Service |
c5cf8c |
.SH NOTES FOR FORTRAN
|
|
Packit Service |
c5cf8c |
All MPI routines in Fortran (except for
|
|
Packit Service |
c5cf8c |
.I MPI_WTIME
|
|
Packit Service |
c5cf8c |
and
|
|
Packit Service |
c5cf8c |
.I MPI_WTICK
|
|
Packit Service |
c5cf8c |
) have
|
|
Packit Service |
c5cf8c |
an additional argument
|
|
Packit Service |
c5cf8c |
.I ierr
|
|
Packit Service |
c5cf8c |
at the end of the argument list.
|
|
Packit Service |
c5cf8c |
.I ierr
|
|
Packit Service |
c5cf8c |
is an integer and has the same meaning as the return value of the routine
|
|
Packit Service |
c5cf8c |
in C. In Fortran, MPI routines are subroutines, and are invoked with the
|
|
Packit Service |
c5cf8c |
.I call
|
|
Packit Service |
c5cf8c |
statement.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
All MPI objects (e.g.,
|
|
Packit Service |
c5cf8c |
.I MPI_Datatype
|
|
Packit Service |
c5cf8c |
,
|
|
Packit Service |
c5cf8c |
.I MPI_Comm
|
|
Packit Service |
c5cf8c |
) are of type
|
|
Packit Service |
c5cf8c |
.I INTEGER
|
|
Packit Service |
c5cf8c |
in Fortran.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH ERRORS
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
All MPI routines (except
|
|
Packit Service |
c5cf8c |
.I MPI_Wtime
|
|
Packit Service |
c5cf8c |
and
|
|
Packit Service |
c5cf8c |
.I MPI_Wtick
|
|
Packit Service |
c5cf8c |
) return an error value;
|
|
Packit Service |
c5cf8c |
C routines as the value of the function and Fortran routines in the last
|
|
Packit Service |
c5cf8c |
argument. Before the value is returned, the current MPI error handler is
|
|
Packit Service |
c5cf8c |
called. By default, this error handler aborts the MPI job. The error handler
|
|
Packit Service |
c5cf8c |
may be changed with
|
|
Packit Service |
c5cf8c |
.I MPI_Comm_set_errhandler
|
|
Packit Service |
c5cf8c |
(for communicators),
|
|
Packit Service |
c5cf8c |
.I MPI_File_set_errhandler
|
|
Packit Service |
c5cf8c |
(for files), and
|
|
Packit Service |
c5cf8c |
.I MPI_Win_set_errhandler
|
|
Packit Service |
c5cf8c |
(for
|
|
Packit Service |
c5cf8c |
RMA windows). The MPI-1 routine
|
|
Packit Service |
c5cf8c |
.I MPI_Errhandler_set
|
|
Packit Service |
c5cf8c |
may be used but
|
|
Packit Service |
c5cf8c |
its use is deprecated. The predefined error handler
|
|
Packit Service |
c5cf8c |
.I MPI_ERRORS_RETURN
|
|
Packit Service |
c5cf8c |
may be used to cause error values to be returned.
|
|
Packit Service |
c5cf8c |
Note that MPI does
|
|
Packit Service |
c5cf8c |
.B not
|
|
Packit Service |
c5cf8c |
guarentee that an MPI program can continue past
|
|
Packit Service |
c5cf8c |
an error; however, MPI implementations will attempt to continue whenever
|
|
Packit Service |
c5cf8c |
possible.
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_SUCCESS
|
|
Packit Service |
c5cf8c |
- No error; MPI routine completed successfully.
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_ERR_ARG
|
|
Packit Service |
c5cf8c |
- Invalid argument. Some argument is invalid and is not
|
|
Packit Service |
c5cf8c |
identified by a specific error class (e.g.,
|
|
Packit Service |
c5cf8c |
.I MPI_ERR_RANK
|
|
Packit Service |
c5cf8c |
).
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_ERR_COMM
|
|
Packit Service |
c5cf8c |
- Invalid communicator. A common error is to use a null
|
|
Packit Service |
c5cf8c |
communicator in a call (not even allowed in
|
|
Packit Service |
c5cf8c |
.I MPI_Comm_rank
|
|
Packit Service |
c5cf8c |
).
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_ERR_INFO
|
|
Packit Service |
c5cf8c |
- Invalid Info
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_ERR_OTHER
|
|
Packit Service |
c5cf8c |
- Other error; use
|
|
Packit Service |
c5cf8c |
.I MPI_Error_string
|
|
Packit Service |
c5cf8c |
to get more information
|
|
Packit Service |
c5cf8c |
about this error code.
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
.PD 0
|
|
Packit Service |
c5cf8c |
.TP
|
|
Packit Service |
c5cf8c |
.B MPI_ERR_SIZE
|
|
Packit Service |
c5cf8c |
-
|
|
Packit Service |
c5cf8c |
.PD 1
|
|
Packit Service |
c5cf8c |
|
|
Packit Service |
c5cf8c |
.SH SEE ALSO
|
|
Packit Service |
c5cf8c |
MPI_Win_allocate MPI_Win_allocate_shared MPI_Win_create_dynamic MPI_Win_free
|
|
Packit Service |
c5cf8c |
.br
|