Parallel matrix transpose with MPI (mpich2).

  • Follow


Greetings fellow programmers,

I would like to convert little MPI application written in c. This one
transposes n x n matrix. The main purpose of my conversion is to
allocate the size of the matrix and the values inside dynamically by
the user instead of a static (fixed) ones, and then transpose and print
the new matrix on screen.

The code (fixed 128x128 matrix) can be found here:

http://www.phpfi.com/118859

How could I do that ?

I think the first step is to let the app ask for size of the matrix.
Then using two-level for loop ask for the values, and then I'm stuck.
How come the MPI_Alltoall function will know  the sub-matrices size ?
Maybe should I pick some new integers ?

I really need some help with that one, fully apprieciated

best regards

Andre

0
Reply venn (1) 5/20/2006 4:29:09 PM


0 Replies
637 Views

(page loaded in 0.047 seconds)

Similiar Articles:













7/24/2012 6:51:16 PM


Reply: