15487

Togpu: Automatic Source Transformation from C++ to CUDA using Clang/LLVM

Matthew Marangoni, Thomas Wischgoll
Wright State University, Dayton, Ohio
Electronic Imaging, Visualization and Data Analysis, pp. 1-9(9), 2016

@article{marangoni2016paper,

   title={Paper: Togpu: Automatic Source Transformation from C++ to CUDA using Clang/LLVM},

   author={Marangoni, Matthew and Wischgoll, Thomas},

   year={2016}

}

Download Download (PDF)   View View   Source Source   

2311

views

Parallel processing using GPUs provides substantial increases in algorithm performance across many disciplines. As a result serial algorithms are commonly translated to parallel algorithms written in CUDA or OpenCL. To perform this translation a user must first overcome various barriers to entry. These obstacles change depending on the user but in general may include learning to program using the chosen API, understanding the intricacies of parallel processing and optimization, and other issues such as the upkeep of two sets of code. Such barriers are experienced by both experts and novices alike. Leveraging the unique source to source transformation tools provided by Clang/LLVM we have created a tool to generate CUDA from C++. Such transformations reduce obstacles experienced in developing GPU software and can increase efficiency and revision speed regardless of experience. This manuscript details a new open source, cross platform tool, togpu, which performs source to source transformations from C++ to CUDA. We present experimentation results using common image processing algorithms. The tool lowers entrance barriers while preserving a singular code base and readability. Enhancing the GPU developer workflow through providing core tooling affords users immediate benefits – and facilitates further developments – to improve high performance, parallel computing.
Rating: 2.5/5. From 1 vote.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: