A compiler cost model for speculative multithreading chip-multiprocessor architectures
University of Edinburgh, 2006
Online
Hochschulschrift
Zugriff:
This thesis proposes a novel compiler static cost model of speculative multithreaded execution that can be used to predict the resulting performance. This model attempts to predict the expected speedups, or slowdowns, of the candidate speculative sections based on the estimation of the combined run-time effects of various speculation overheads, and taking into account the scheduling restrictions of most speculative execution environments. The model is based on estimating the likely execution duration of threads and considers all the possible permutations of these threads when scheduled on a multiprocessor. The proposed cost model was implemented in a research computer development framework. The model seamlessly uses the compiler’s intermediate representation and integrates with the control and data flow analyses. The resulting framework was tested and evaluated on a collection of SPEC benchmarks, which include large real-world scientific and engineering applications. The framework was found to be very stable and efficient with moderate compilation times. Initially, the proposed framework is evaluated on a number of loops that suffer mainly from load imbalance and thread dispatch and commit overheads. Experimental results show that the framework can identify on average 68% of the loops that cause slowdowns and on average 97% of the loops that lead to speedups. In fact, the framework predicts the speedups or slowdowns with an error of less than 20% for an average of 44% of the loops across the benchmarks, and with an error of less than 50% for an average of 84% of the loops. Overall, the framework leads to a performance improvement of 5% on average, and as high as 38%, over a naïve approach that attempts to speculatively parallelize all the loops considered. The proposed framework is also evaluated on loops that may suffer from data dependence violations. Experimental results with all loops show that prediction accuracy is lower when loops with violations are included. Nevertheless, accuracy is still very high for a static model.
Titel: |
A compiler cost model for speculative multithreading chip-multiprocessor architectures
|
---|---|
Autor/in / Beteiligte Person: | Dou, Jialin |
Link: | |
Veröffentlichung: | University of Edinburgh, 2006 |
Medientyp: | Hochschulschrift |
Schlagwort: |
|
Sonstiges: |
|