, MPI_Xxx_free ( MPI_XXX_NULL). MPI-I 7 :
1. ;
2. ;
3. ;
4. ;
5. (request's);
6. ;
7. (errhandler's).
, .
, . - MPI_Xxx_free . , :
ü , MPI_Xxx_free;
ü MPI, .
( ); , ( ).
:
MPI_Comm subComm;
MPI_Group subGroup;
int rank;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
MPI_Comm_split(MPI_COMM_WORLD, rank / 3, rank % 3, &subComm);
/* subComm,
* , .
* - subComm.
* .
*/
MPI_Comm_group(subComm, &subGroup);
/* -
* , subGroup.
*/
MPI_Group_free(&subGroup);
/* ,
* subGroup MPI_GROUP_NULL.
* ,
* .
*/
MPI_Comm_free(&subComm);
/* ,
* subComm MPI_COMM_NULL.
* , .
* .
* ,
* .
*/
MPI_COMM_WORLD MPI_CHAR: MPI.
1. 2 ( ) 3 4.
2
3 | 4 | |
|
|
2. C++, , 3 MPI 4 ( , , ). . , (x, y) . .
3
1 | |
() . . | |
. ( ). | |
. . | |
5 (4 , ), , , .. (. . 1). |
. 1.
4
2 | |
- | |
- .
- .
- .
- - .
- .
- .
- MPI?
- MPI.
- MPI.
- .
- ?
- .
- , ? .
- ?
- .
- MPI_Finalize(). ?
1. .., .. . , 2002.
2. ., . . :, , 2002.
3. . Linux , , 2003. http://www.citforum.ru/operating_systems/linux/linux_parall/.
4. .. . Message Passing Interface (MPI) http://parallel.srcc.msu.su/vvv/mpi.html.
5. . ++.
6. . MPI . .
- MPI
2.1. : , ,
2.2. MPI
2.3. .
2.4. "-"
2.5. : MPI_Sendrecv
2.6.
2.7.
|
|
2.8.
2.9.
2.10.
2.11.