Hi,
The code snippet looks fine. However the working really depends on how
the memory for the matrices is allocated and how they are initialized.
Can you please check to see it the matrices are initialized correctly and
that you have allocated contiguous memory.
Also it would be nice if we have more information on initialization and
the possible use of pointers in your code.
Thanks,
Nihar.
>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/
>_______________________________________________
>This list is archived at http://www.lam-mpi.org/MailArchives/lam/
>
Powered by LAM/MPI...
---------------------------------------
Nihar Sanghvi
LAM/MPI Team
Graduate Student (Indiana University)
http://www.lam-mpi.org
--------------------------------------
|