Parallel Programming Midterm

1

Q
  1. Provide a clear example of how the “localize()” function works in Peril-L and why it is an important concept in parallel programming.
A
int _allData_ [n]; // This is a global array

forall( threadID in(0..P-l)) // let's spawn P threads
{
        int size=n/P; // The size of the section for this thread

        // This will map the appropriate section of
        // the _allData_ array based on size to the locData array. 
        int locData[size]=localize(_allData_[]); 

        // This will set all the values of our chunk of the array
        // to be equal to our threadID. Since this is mapped to 
        // the global array we can assume the global array will be
        // updated because the local and global are references to
        // the same location. 
        for (int i = 0; i < size; i++) {
                locData[i] = threadID;
        }
}

2

Q
  1. Provide a description, detailed history, and performance characteristics of the Infiniband communications infrastructure. I am interested in when the subsystem becomes saturated, what is the normal connection topology, what systems support it, studies on how it performs both as a bench requirement as well as how well it performs with real applications. You need to have more than 3 references.
A

3

Q
  1. What are the differences between Speedup and
    Relative Speedup. Convince me that you
    understand why we have the two terms.
A

4

Q
  1. Define and explain “efficiency” as it applies to parallel computing. Is it possible to have an efficiency greater than 1? If so, give examples. If not, state why not.
A

5

Q
A