.


:




:

































 

 

 

 


MPI_Comm_create




:

MPI_Comm_create(MPI_Comm comm, MPI_Group group,

MPI_Comm *newcomm)

 

IN comm - ;
IN group - , ;
OUT newcomm - .

group. , , MPI_COMM_NULL. , group .

MPI_Comm_split

:

MPI_Comm_split(MPI_Comm comm, int color, int key,

MPI_Comm *newcomm)

 

IN comm - ;
IN color - ;
IN key - ;
OUT newcomm - .

, , color. color . color. key : key . key .

(. 6.1).

MPI_comm comm, newcomm;int myid, color;......MPI_Comm_rank(comm, &myid);color = myid%3;

MPI_Comm_split(comm, color, myid, &newcomm);

. 6.1. .

, 3 , - 1 - 2. , MPI_Comm_split newcomm .

MPI_Comm_free

:

MPI_Comm_free(MPI_Comm *comm)

IN comm - .

: inter- , .

. intra-. , 0 n-1, n - . . MPI "" , , - . , , MPI, .

, . . , . MPI, , row-major , .. . . 7.1 6- (23) .

. 7.1. ( ) 23 ( ).

. MPI_Cart_create. , . , , , . , , , , . , , n- .





:


: 2016-07-29; !; : 548 |


:

:

, .
==> ...

1350 - | 1202 -


© 2015-2024 lektsii.org - -

: 0.01 .