Cypress CSC-1200T Betriebsanweisung Seite 71

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 124
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 70
Chapter 7. Interprocess communication 71
Routine Description
num_pes Returns the total number of PEs.
shmem_add Performs an atomic add operation on a
remote data object.
shmem_barrier A barrier routine for synchronization purposes.
shmem_broadcast Sends a local variable to all other PEs.
shmem_collect Concatenates data from several PEs to each
of them.
shmem_fence An auxiliary routine for ordering calls to
shmem_put.
shmem_get Reads from a remote (another PE) memory.
shmem_lock An auxiliary routine for protecting a part of the
memory from simultaneous update by multiple
tasks.
shmem_max A collective routine for finding the maximum.
value of a symmetric variable between all PEs.
shmem_min A collective routine for finding the minimum.
value of a symmetric variable between all PEs.
shmem_my_pe Returns the identity number of the calling PE.
shmem_prod A reduction routine for calculating the product
of one or several variables from every PE.
shmem_put Writes into a remote (another PE’s) memory.
shmem_sum A reduction routine for summing up the values
of one or several variables from every PE.
shmem_swap Changes variables between two PEs.
shmem_wait Waits for a variable on the local PE to change.
Table 7.2: Some SHMEM routines.
C language this is
#include <mpp/shmem.h>
and for Fortran 90:
INCLUDE ’mpp/shmem.fh’
The Fortran compiler in T3E knows automatically where to search for
SHMEM constants and thus the INCLUDE command is not obligatory for
Fortran programs.
Use man shmem_command for finding instructions on how to use the
SHMEM library. A good way to start is by giving the command man
intro_shmem.
Seitenansicht 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 123 124

Kommentare zu diesen Handbüchern

Keine Kommentare