LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: thiranji perera (thiranji8_at_[hidden])
Date: 2004-06-23 00:28:37


To whom it may concern,
 
    I'm tryinng to display results of my parallel application on all the machines. I'm using LAM version 6.5.8 on Linux platform. Normally the results are displayed only at the server console( the machine your are running your program).
 
// my LAM program
 
int main (int argc, char * argv[]){
int myId,p;
 
MPI_Comm_size(MPI_COMM_WORLD, &p);
MPI_Comm_rank(MPI_COMM_WORLD, &myId);
 
printf("Hello World.... from processes %d \n", myId);
 
MPI_Finalize();
return 0;
}
 
This is the main of the program I need to run by creating 2 processes on two different machines. Both machines should print Hello World ... from processes Id on console in own machine. If U have any idea of how to do this please mail me.
 
 
 
  Thank You.
  Thiranji.
 
 

                
---------------------------------
Do you Yahoo!?
Yahoo! Mail is new and improved - Check it out!