LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Sarath Devarajan (sargoof_at_[hidden])
Date: 2003-06-21 04:27:49


hi

1 )I have a program to calculate log(2), in C.(using
 SGI IRIX6.5) it requires the user to input the number
  of terms in the series...
 The statements are as follows
 
"
 printf("Enter the number of terms ");
 scanf("%d",&n);
"

I always find that after giving mpirun, the printf
statement never appears on the screen, the cursor
waits and once I enter a number, it goes on with the
execution. Ironically at the end of the WHOLE thing, a
small "Enter the number of terms" message appears...IS
this non-interactiveness preventible...Sorry if the
question appears too trivial...Coming to the main
issue

2) Can I pass data from proc 0 like this

  " for(k=0;k<9;k++)
      
MPI_Send(&array[k][0][0],10,MPI_FLOAT,1,11,MPI_COMM_WORLD)"

And the corresponding array being accepted in
processor 1 in a similar loop???

PLEASE HELP OUT someone..if loopwise sending is not
allowed, how do I efficiently maintain control over
the sent and recieved 3D arrays...

Thanks in advance for the replies ;-)
*******************************
Sarath Devarajan
B.Tech,Chemical Engg
Indian Institute of Technology
Madras
India
*******************************

__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com