LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Soumya,Teena, Ranjana,Liss,Navya (bytecode.compression_at_[hidden])
Date: 2006-02-24 04:26:07


hi,

hello.c program is as follows:
#include<stdio.h>
#include<mpi.h>
int main(int argc,char* argv[]){
int rank,size;
MPI_Init(&argc,&argv);
MPI_Comm_rank(MPI_COMM_WORLD,&rank);
MPI_Comm_size(MPI_COMM_WORLD,&size);

printf("Hello World %d of %d \n",rank,size);
MPI_Finalize();
printf("After final...");
return 0;
}

Lam-mpi is configured on 4 systems.
The command lamnodes gave:
n0 master.mec.ac.in:1:origin,this_node
n1 node-1.mec.ac.in:1:
n2 node-2.mec.ac.in:1:
n3 node-3.mec.ac.in:1:

When we do mpirun -np 4 a.out after mpicc test.c -lmpi having compiled
successfully we are getting the following output:
Hello World 0 of 4
Hello World 2 of 4
After final...Afterfinal...

Then we did mpirun -np 8 a.out and got output as follows
Hello World 0 of 8
Hello World 4 of 8
After final...Hello World 2 of 8
Hello World 6 of 8
After final...After final...After final...

Then we did lamshrink n1 .
Then mpirun -np 8 a.out
Hello World 3 of 8
Hello World 1 of 8
Hello World 4 of 8
Hello World 7 of 8
After final...After final...After final...After final...Hello World 0 of 8
After final...Hello World 6 of 8

It seems that the nodes node-1 and node-3 is not printing any message
although communication between the nodes by means of message parsing is
taking place and lam is properly installed in all 4 nodes.

What could be the reason? Please suggest a solution.

Thank u.

--
CE  2002-06