
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Project proposed by Timothy Rolfe Matrix multiplication in linear algebra provides a useful “embarrassingly parallel” problem through which one can investigate the interaction of message size and speed-up ratio. Given matrices A[N 1 ][N 2 ], B[N 2 ][N 3 ], and C[N 1 ][N 3 ], matrix multiplication is defined as the generation of the matrix C from the matrices A and B: for each cell cij in C,
1 0 N 2 k cij aik b kj The investigation will cover two strategies for breaking this into parallel computations. Both of them will send the entirety of the matrix B to all participating compute engines, and partition the problem subsets based on the rows of A and C. Based on the definition, each row in C depends only on one row in A. (Similarly, each column in C depends only on one column in B, but partitioning in that fashion would require sending and receiving column vectors. In the C language it is much easier to deal with row vectors.) One strategy would be appropriate if one has a heterogeneous parallel virtual computer — one in which the power of the individual components differs. That would be to break the problem into a large number of subproblems (significantly larger than the number of compute engines in the virtual machine), and then provide subproblems to the compute engines upon their requests. Slower compute engines will simply do fewer subproblems than the faster compute engines without (one hopes) significantly retarding the progress of the over-all computation. Such a strategy, however, requires numerous messages. Briefly, the compute engines would compute C[1][N 3 ] A[1][N 2 ]B[N 2 ][N 3 ]. The other strategy would be appropriate if one has a homogeneous virtual computer, in which all of the compute engines have the same speed. In this case one can minimize the message traffic by transmitting an entire band of the matrix A to the compute engine, and have it return an entire band of the matrix C as its result. If the number of compute engines evenly divides the number of rows in the matrices A and C, all compute engines will have an equivalent amount of work. Briefly, the compute engines would compute C[N 1 / Np][N 3 ] A[N 1 /Np][N 2 ]B[N 2 ][N 3 ], where Np is the number of parallel segments. The program will be run under both PVM and MPI, to see whether there is different behavior under the two message passing systems. Further, the PVM version will be run both on the EWU Armada and on the four available Linux lab computers (oregon, idaho, montana, and wyoming) when those four machines are not being used for anything else. That will allow a comparison with a somewhat different set of computers — 2 GHz uniprocessor computers without the hyperthreading, etc. Printed 2020/12 月/03 at 23: