arrow
返回

Parallelization Hints via Code Skeletonization

delete2015-11-01
delete2
PRE
AI
C
Cfir Aguston *
Y
Yosi Ben Asher
G
Gadi Haber
DOI:10.1109/TPDS.2014.2371463delete
delete原文链接
delete分享
delete收藏
摘要

摘要

En 中文
Tools that provide optimization hints for program developers are facing severe obstacles and often unable to provide meaningful guidance on how to parallelize real-life applications. The main reason is due to the high code complexity and its large size when considering commercially valuable code. Such code is often rich with pointers, heavily nested conditional statements, nested while-based loops, function calls, etc. These constructs prevent existing compiler analysis from extracting the full parallelization potential. We propose a new paradigm to overcome this issue by automatically transforming the code' into a much simpler skeleton-like form that is more conductive for auto-parallelization. We then apply existing tools of source-level automatic parallelization on the skeletonized code in order to expose possible parallelization patterns. The skeleton code, along with the parallelized version, are then provided to the programmer in the form of an Integrated Development Environment (IDE) recommendation. The proposed skeletonization algorithm replaces pointers by integer indexes and C-struct references by references to multi-dimensional arrays. For example, the loop while(p not equal NULL){p -> val + +; p = p -> next;} will be skeletonized to: for (Ip = 0; Ip < N; Ip + +){Aval[Ip] + +;} where AvalSS holds the embedding of the original list. Consequently, the main goal of the skeletonization process is to embed pointer-based data structures into arrays. Though the skeletonized code is not semantically equivalent to the original code, it suggests a possible parallelization pattern for the selected code segment and can be used as an effective parallelization hint to the programmer. We applied the method on the SPEC CPU benchmarks and the skeletonization process detected 27 percent additional loops that can be parallelized/vectorized on top of the compiler auto-parallelizer/vectorizer. A performance gain of up to 45 percent was measured for benchmarks that were manually parallelized based on the generated skeleton code.
Keyword:
Program skeletons
parallelization
parallel programming
AI总结

AI总结

对已上传原文的论文进行重点信息的提取,主要内容包括:简要概述、研究摘要、背景介绍、关键亮点、图文解析、展望与总结。

期刊

IEEE Transactions on Parallel and Distributed Systems 封面图
IEEE Transactions on Parallel and Distributed Systems
IF:
6
论文数:
5.2K
被引数:
1.4W

机构

U
University of Haifa
学者数:
425
论文数: 205
被引数: 3.0K
I
intel corporation
学者数:
62
论文数: 25
被引数: 2.2K
引用论文

引用论文

err分享
err收藏
err分享
err收藏
Postural support requirements preferentially modulate late components of the gastrocnemius response to transcranial magnetic stimulation
err2022-08-25
err0
errOAAI
errCassandra Russell; Nathan Difford; Alexander Stamenkovic; Paul Stapley; Darryl McAndrew; Caitlin Arpel; Colum MacKinnon; Jonathan Shemmell
err分享
err收藏
err分享
err收藏
The relationship between space and time perception: A registered replication of Casasanto and Boroditsky (2008)
err2022-02-16
err0
errOAAI
errMirinda M. Whitaker; Rachael C. Hansen; Sarah H. Creem-Regehr; Jeanine K. Stefanucci
err分享
err收藏
学者 查看更多内容