The OpenNET Project / Index page

[ ÎÏ×ÏÓÔÉ /+++ | ÆÏÒÕÍ | ÔÅÇÉ | ]

ëÁÔÁÌÏÇ ÄÏËÕÍÅÎÔÁÃÉÉ / òÁÚÄÅÌ "ðÒÏÇÒÁÍÍÉÒÏ×ÁÎÉÅ, ÑÚÙËÉ" / ïÇÌÁ×ÌÅÎÉÅ ÄÏËÕÍÅÎÔÁ
next up previous contents
Next: ðÒÉÍÅÒ 3 Up: ðÒÉÍÅÒÙ Previous: ðÒÉÍÅÒ 1   Contents

ðÒÉÍÅÒ 2

   main(int argc, char **argv) 
   { 
     int me, count; 
     void *data; 
     ...

     MPI_Init(&argc, &argv); 
     MPI_Comm_rank(MPI_COMM_WORLD, &me); 

     if(me == 0)
     { 
         /* ÐÏÌÕÞÉÔØ ×ÈÏÄÎÙÅ ÄÁÎÎÙÅ, ÓÏÚÄÁÔØ ÂÕÆÅÒ ``data'' */ 
         ... 
     } 

     MPI_Bcast(data, count, MPI_BYTE, 0, MPI_COMM_WORLD); 
     ...

     MPI_Finalize(); 
   }

üÔÏÔ ÐÒÉÍÅÒ ÉÌÌÀÓÔÒÉÒÕÅÔ ÉÓÐÏÌØÚÏ×ÁÎÉÅ ËÏÌÌÅËÔÉ×ÎÏÇÏ ÏÂÍÅÎÁ.



Alex Otwagin 2002-12-10



ðÁÒÔΣÒÙ:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
èÏÓÔÉÎÇ:

úÁËÌÁÄËÉ ÎÁ ÓÁÊÔÅ
ðÒÏÓÌÅÄÉÔØ ÚÁ ÓÔÒÁÎÉÃÅÊ
Created 1996-2024 by Maxim Chirkov
äÏÂÁ×ÉÔØ, ðÏÄÄÅÒÖÁÔØ, ÷ÅÂÍÁÓÔÅÒÕ