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/
|