Добавил:
Upload Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:

parallel / 7-2010

.pdf
Скачиваний:
21
Добавлен:
31.05.2015
Размер:
1.31 Mб
Скачать

MPI_Type_hindexed !

, " indices :

int MPI_Type_hindexed(int count, int blocklens[], MPI_Aint indices[], MPI_Datatype oldtype, MPI_Datatype *newtype)

MPI_Type_hindexed(count, blocklens, indices, oldtype, newtype, ierr)

2008

MPI_Type_contiguous

! :

int MPI_Type_contiguous(int count, MPI_Datatype oldtype,

MPI_Datatype *newtype)

MPI_Type_contiguous(count, oldtype, newtype, ierr)

/ :

count ;

oldtype .

newtype % . )

% .

2008

MPI_Datatype a; float b[10];

MPI_Type_contiguous(10, MPI_REAL, &a);

MPI_Type_commit(&a);

MPI_Send(b, 1, a,…);

MPI_Type_free(&a);

2008

' , " , ! " :

int MPI_Type_create_subarray(int ndims, int *sizes, int

*subsizes, int *starts, int order, MPI_Datatype oldtype,

MPI_Datatype *newtype)

MPI_Type_create_subarray(ndims, sizes, subsizes, starts, order, oldtype, newtype, ierr)

:

ndims ;

sizes oldtype !

;

subsizes oldtype !

;

starts ! ;

order %, " ;

oldtype .

2008

. newtype

.

& " ,

!.

2008

& " MPI_Type_commit

datatype, , .

! :

int MPI_Type_commit(MPI_Datatype *datatype)

MPI_Type_commit(datatype, ierr)

1 datatype ! "

MPI_Type_free:

int MPI_Type_free(MPI_Datatype *datatype) MPI_Type_free(datatype, ierr)

( ) .

2008

datatype ( ,

) ! "

MPI_Type_size:

int MPI_Type_size(MPI_Datatype datatype, int *size)

MPI_Type_size(datatype, size, ierr)

size.

2008

# datatype (

) ! "

MPI_Type_extent:

int MPI_Type_extent(MPI_Datatype datatype, MPI_Aint *extent)

MPI_Type_extent(datatype, extent, ierr)

extent. & "

, ! MPI_BOTTOM.

2008

1 (address) ! (location) !

" MPI_Address:

int MPI_Address(void *location, MPI_Aint *address)

MPI_Address(location, address, ierr)

) ! Fortran, C .

2008

& " MPI_Type_get_contents !

% ,

:

int MPI_Type_get_contents(MPI_Datatype datatype, int

max_integers, int max_addresses, int max_datatypes, int *integers, MPI_Aint *addresses, MPI_Datatype *datatypes)

MPI_Type_get_contents(datatype, max_integers, max_addresses, max_datatypes, integers, addresses, datatypes, ierr)

:

datatype % ;

max_integers integers;

max_addresses addresses;

max_datatypes datatypes.

2008

Соседние файлы в папке parallel