Skip to content

Commit b0c9e24

Browse files
authored
Merge pull request #8399 from jsquyres/pr/mpi-thread-multiple-man-page-updates
MPI_Init_thread(3): update refs about MPI_THREAD_MULTIPLE
2 parents 00bbd3e + 0a52936 commit b0c9e24

File tree

1 file changed

+10
-35
lines changed

1 file changed

+10
-35
lines changed

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

Lines changed: 10 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.\" -*- nroff -*-
22
.\" Copyright 2006-2008 Sun Microsystems, Inc.
33
.\" Copyright (c) 1996 Thinking Machines Corporation
4-
.\" Copyright (c) 2010-2015 Cisco Systems, Inc. All rights reserved.
4+
.\" Copyright (c) 2010-2020 Cisco Systems, Inc. All rights reserved.
55
.\" Copyright (c) 2020 Google, LLC. All rights reserved.
66
.\" $COPYRIGHT$
77
.TH MPI_Init_thread 3 "#OMPI_DATE#" "#PACKAGE_VERSION#" "#PACKAGE_NAME#"
@@ -128,52 +128,27 @@ opening files, reading standard input, or writing to standard output.
128128
.
129129
.SH MPI_THREAD_MULTIPLE Support
130130
.
131-
MPI_THREAD_MULTIPLE support is included if Open MPI was configured
132-
with the --enable-mpi-thread-multiple configure switch. You can check the
131+
MPI_THREAD_MULTIPLE support is included if the environment in which
132+
Open MPI was built supports threading. You can check the
133133
output of
134134
.BR ompi_info (1)
135135
to see if Open MPI has MPI_THREAD_MULTIPLE support:
136136
.
137137
.PP
138138
.nf
139-
shell$ ompi_info | grep -i thread
140-
Thread support: posix (mpi: yes, progress: no)
139+
shell$ ompi_info | grep "Thread support"
140+
Thread support: posix (MPI_THREAD_MULTIPLE: yes, OPAL support: yes, OMPI progress: no, Event lib: yes)
141141
shell$
142142
.fi
143143
.
144144
.PP
145-
The "mpi: yes" portion of the above output indicates that Open MPI was
146-
compiled with MPI_THREAD_MULTIPLE support.
145+
The "MPI_THREAD_MULTIPLE: yes" portion of the above output indicates
146+
that Open MPI was compiled with MPI_THREAD_MULTIPLE support.
147147
.
148148
.PP
149-
Note that MPI_THREAD_MULTIPLE support is only lightly tested. It
150-
likely does not work for thread-intensive applications. Also note
151-
that
152-
.I only
153-
the MPI point-to-point communication functions for the BTL's listed
154-
below are considered thread safe. Other support functions (e.g., MPI
155-
attributes) have not been certified as safe when simultaneously used
156-
by multiple threads.
157-
.
158-
.PP
159-
.nf
160-
tcp
161-
sm
162-
mx
163-
elan
164-
self
165-
.fi
166-
.
167-
.PP
168-
Note that Open MPI's thread support is in a fairly early stage; the
169-
above devices are likely to
170-
.IR work ,
171-
but the latency is likely to be fairly high. Specifically, efforts so
172-
far have concentrated on
173-
.IR correctness ,
174-
not
175-
.I performance
176-
(yet).
149+
Note that there is a small performance penalty for using
150+
MPI_THREAD_MULTIPLE support; latencies for short messages will be
151+
higher as compared to when using MPI_THREAD_SINGLE, for example.
177152
.
178153
.
179154
.SH ERRORS

0 commit comments

Comments
 (0)