Home > Research > Publications & Outputs > Using machine learning to partition streaming p...
View graph of relations

Using machine learning to partition streaming programs

Research output: Contribution to Journal/MagazineJournal articlepeer-review

Published
Close
Article number20
<mark>Journal publication date</mark>09/2013
<mark>Journal</mark>ACM Transactions on Architecture and Code Optimization
Issue number3
Volume10
Number of pages25
Publication StatusPublished
<mark>Original language</mark>English

Abstract

Stream-based parallel languages are a popular way to express parallelism in modern applications. The efficient mapping of streaming parallelism to today's multicore systems is, however, highly dependent on the program and underlying architecture. We address this by developing a portable and automatic compiler-based approach to partitioning streaming programs using machine learning. Our technique predicts the ideal partition structure for a given streaming application using prior knowledge learned offline. Using the predictor we rapidly search the program space (without executing any code) to generate and select a good partition. We applied this technique to standard StreamIt applications and compared against existing approaches. On a 4-core platform, our approach achieves 60% of the best performance found by iteratively compiling and executing over 3000 different partitions per program. We obtain, on average, a 1.90× speedup over the already tuned partitioning scheme of the StreamIt compiler. When compared against a state-of-the-art analytical, model-based approach, we achieve, on average, a 1.77× performance improvement. By porting our approach to an 8-core platform, we are able to obtain 1.8× improvement over the StreamIt default scheme, demonstrating the portability of our approach.