Provably efficient randomized work stealing with first-class parallel loops
Author(s)
Pitimanaaree, Nipun.
Download1127650653-MIT.pdf (652.3Kb)
Other Contributors
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer Science.
Advisor
Tao B. Schardl.
Terms of use
Metadata
Show full item recordAbstract
In parallel computing, do-all parallel loops are often a target for optimizations as loop iterations can be executed independently in any order and thus contribute to high parallelism. Techniques such as divide-and-conquer and lazy binary splitting have proven to be efficient in theory and/or in practice. However, these approaches can potentially be improved in terms of lower number of unnecessary splits and better cache efficiency. In this thesis, I introduce the design of first-class LoopFrame for parallel loops, which follows dynamic splitting protocol and is efficient in terms of cache-locality and execution time in randomized work stealing. In particular, two versions of LoopFrames are presented: 1-D LoopFrame and an extension to multi-dimensional (M-D) LoopFrame, for non-nested and nested parallel loops, respectively. This paper mainly contributes the theoretical analysis on execution time of randomized work stealing with both versions of LoopFrames. The execution time is asymptotically preserved and remained efficient, i.e., randomized work stealing with LoopFrames has an expected runtime of 0(T1/p+T[infinity], where T1 is the work (total computation) and T[infinity] is the span (length of longest dependency path). On the implementation side, M-D LoopFrame is benchmarked against nested forloops and divide-and-conquer methods on a matrix multiplication computation on a single processor. M-D LoopFrame proves to have efficient D1 cache misses, approximately the same as the divide-and-conquer method and 10x to 100x more efficient than for-loops. Execution time-wise, on multiplication of size 4001 square matrices, M-D LoopFrame runs approximately 50% faster than both nested for-loops and divide-and-conquer at grainsize 32.
Description
This electronic version was submitted by the student author. The certified thesis is available in the Institute Archives and Special Collections. Thesis: M. Eng., Massachusetts Institute of Technology, Department of Electrical Engineering and Computer Science, 2019 Cataloged from student-submitted PDF version of thesis. Includes bibliographical references (pages 67-68).
Date issued
2019Department
Massachusetts Institute of Technology. Department of Electrical Engineering and Computer SciencePublisher
Massachusetts Institute of Technology
Keywords
Electrical Engineering and Computer Science.