LAM/MPI logo

LAM/MPI General User's Mailing List Archives

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

From: Dinesh Sharma (aryabhatt_uno_at_[hidden])
Date: 2003-11-30 17:52:41


Hi all,

I am trying to broadcast a matrix, & facing a strage problem. Its
bradcasting on half the rows, now matter what size of the matrix is used.

can someone help me out?

I am using the follwing syntax:

if (rank==0){
    assign_matrix(A,B); //initailise the matercies A & B

    for (i=0;i<=N-1;i++)
      MPI::COMM_WORLD.Bcast(B[i],N,MPI::FLOAT,master);
  }

  
  if(rank>master){
  for (i=0;i<=N-1;i++)
    MPI::COMM_WORLD.Bcast(B[i],N,MPI::FLOAT,master);

regards
Dinesh

__________________________________
Do you Yahoo!?
Free Pop-Up Blocker - Get it now
http://companion.yahoo.com/