Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Loop on a multiprocessor

  1. Feb 13, 2010 #1
    Can someone help me with the below task:

    The inner loop of a matrix computation uses the statement

    For J: = K step 1 until N do
    A[I,J]: = A[I,J] x Q – A[K,J];

    Assume that this statement is parcelled out among the processors of a multiprocessor system so that each processor executes the statement for a different value of J. Assume also that the multiprocessor system has a central shared memory. When two different processors access the same memory module simultaneously, the module responds immediately to one processor, and the second processor has to wait one memory cycle, at which time it repeats its request.
    a) Assume that the array is stored by rows accross the memories, so that at ascending addresses are elements with index pairs, (1,1), (1,2), ..., (1,N), (2,1), ..., (2,N), ..., (N,N), as ascending addresses cycle across the memories.
    Diagram the cycle-by-cycle execution of the first five computation parcels under the assumption that all are initiated simultaneously, and that the number of memories is N.
    b) Now assume that the array is stored so that each row of A lies in a distinct memory module. Repeat part a).
    c) Comment on the problem of data contention in this type of shared memory system, based on your observations.


    Thanks,
    Blaz
     
  2. jcsd
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted