Cypress CSC-1200T Podręcznik Użytkownika Strona 67

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 124
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 66
Chapter 7. Interprocess communication 67
t3e% cc -o collect.x collect.c
The program may be executed as in the Fortran 90 case above.
7.2.4 Reducing communication overhead in MPI
On the T3E, it is in some cases faster to use the synchronous send routine
MPI_SSEND instead of the standard routine MPI_SEND. The synchronous
routine avoids some overhead in buffering the messages, but may cause
load inbalance due to synchronization.
You can also post an MPI_IRECV call, which initiates a receive operation,
and compute before checking for the arrival of a message. You could
also issue an MPI_IRECV call before sending your data, which helps in
avoiding possible deadlock situations.
If the communication speed of MPI seems to be too slow, for example
due to many small messages, you can try to use the SHMEM library
(see Section 7.4 on page 70). You can check your code for possible
communication bottlenecks with the MPP Apprentice tool (see page 95)
or VAMPIR products (see page 100).
7.2.5 MPI data types
MPI introduces a datatype argument for all messages sent and received.
The predefined MPI datatypes correspond directly to Fortran 77 and C
datatypes. On the T3E, the sizes of the most important MPI datatypes
are:
MPI_INTEGER:8bytes
MPI_REAL: 8 bytes
MPI_DOUBLE_PRECISION: 8 bytes
MPI_INT: 8 bytes
MPI_LONG: 8 bytes
MPI_FLOAT: 4 bytes
MPI_DOUBLE:8bytes
7.2.6 Further information about MPI
CSC has published an MPI textbook in Finnish [HM97], which discusses
MPI in more detail. The book is also available on the WWW pages at
http://www.csc.fi/oppaat/mpi/
You should also acquire a handbook of MPI [For95, SOHL
+
96]tobeable
to use the system efficiently. There are also many tutorials of MPI in
English [GLS94, Pac97].
Przeglądanie stron 66
1 2 ... 62 63 64 65 66 67 68 69 70 71 72 ... 123 124

Komentarze do niniejszej Instrukcji

Brak uwag