In this work is presented a technique to transform sequential source code to execute it on parallel architectures as heterogeneous many-core systems or GPUs. Source code is parsed and basic algorithmic concepts are discovered from it in order to feed a knowledge base. A reasoner, by consulting algorithmic rules, can compose this basic concepts to pinpoint code regions representing a known algorithm. This code can be annotated and / or transformed with a source-to-source process. A prototype tool has been built and tested on a case study to analyse the source code of a matrix multiplication. After recognition of the algorithm, the code is modified with calls to nVIDIA GPU cuBLAS library. © 2012 Springer-Verlag Berlin Heidelberg.
CITATION STYLE
Cantiello, P., & Di Martino, B. (2012). Automatic source code transformation for GPUs based on program comprehension. In Lecture Notes in Computer Science (including subseries Lecture Notes in Artificial Intelligence and Lecture Notes in Bioinformatics) (Vol. 7156 LNCS, pp. 188–197). Springer Verlag. https://doi.org/10.1007/978-3-642-29740-3_22
Mendeley helps you to discover research relevant for your work.