Funktionsübersicht . . Gruppen, Kontexte und Kommunikatoren

Hilfesystem für den Message Passing Interface Standard MPI


MPI_Attr_put

Speichert das zu einem Attributschlüssel gehörige Attribut

Syntax:

Input Parameter: Aufruf:

#include "mpi.h"

typedef struct {
    ... die gewünschten Attributwerte ...
} attr_t;
...
    
    ...
    static int   keyval=MPI_KEYVAL_INVALID;
    MPI_Comm     comm;
    attr_t       attribute_val;

    ...
    ... attribute_val belegen ...
    MPI_Keyval_create( (MPI_Copy_function *)& copy_fn,
		       (MPI_Delete_function *)&delete_fn,
			&keyval, extra_state); 
    MPI_Attr_put(MPI_COMM_WORLD, keyval, attribute_val);    
    MPI_Comm_dup(MPI_COMM_WORLD, &comm);
    ...


Beispiel