Funktionsübersicht
. .
Gruppen, Kontexte und Kommunikatoren
Hilfesystem für den Message Passing Interface Standard MPI
MPI_Comm_dup
Erzeugt eine neue Prozeßgruppe indem eine vorhandene kopiert wird. Der neue
Kommunikator übernimmt sämtliche Eigenschaften, hat jedoch einen eigenen
tag-Raum.
Syntax:
MPI_Comm_dup(comm, newcomm)
Input Parameter:
comm - ursprünglicher Kommunikator (handle)
Output Parameter:
newcomm - Kopie von comm (handle)
Aufruf:
#include "mpi.h"
MPI_Comm comm, newcomm;
...
MPI_Comm_dup(comm, &newcomm);
... Berechnung, die einen eigenen tag-Raum benötigt ...
MPI_Comm_free(&newcomm);
...
Beispiel