论文:Togpu:使用Clang/LLVM从c++到CUDA的自动源转换

Matthew Marangoni, T. Wischgoll
{"title":"论文:Togpu:使用Clang/LLVM从c++到CUDA的自动源转换","authors":"Matthew Marangoni, T. Wischgoll","doi":"10.2352/ISSN.2470-1173.2016.1.VDA-487","DOIUrl":null,"url":null,"abstract":"Parallel processing using GPUs provides substantial increases in algorithm performance across many disciplines including image processing. Serial algorithms are commonly translated to parallel CUDA or OpenCL algorithms. To perform this translation a user must first overcome various GPU development entry barriers. 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 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. Image processing algorithms specifically benefit greatly from a quick revision cycle which our tool facilitates. This manuscript details togpu, an open source, cross platform tool which performs C++ to CUDA source to source transformations. We present experimentation results using common image processing algorithms. The tool lowers entrance barriers while preserving a singular code base and readability. Providing core tools enhancing GPU developer facilitates further developments to improve high performance, parallel computing.","PeriodicalId":89305,"journal":{"name":"Visualization and data analysis","volume":"48 1","pages":"1-9"},"PeriodicalIF":0.0000,"publicationDate":"2016-02-14","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"7","resultStr":"{\"title\":\"Paper: Togpu: Automatic Source Transformation from C++ to CUDA using Clang/LLVM\",\"authors\":\"Matthew Marangoni, T. Wischgoll\",\"doi\":\"10.2352/ISSN.2470-1173.2016.1.VDA-487\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Parallel processing using GPUs provides substantial increases in algorithm performance across many disciplines including image processing. Serial algorithms are commonly translated to parallel CUDA or OpenCL algorithms. To perform this translation a user must first overcome various GPU development entry barriers. 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 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. Image processing algorithms specifically benefit greatly from a quick revision cycle which our tool facilitates. This manuscript details togpu, an open source, cross platform tool which performs C++ to CUDA source to source transformations. We present experimentation results using common image processing algorithms. The tool lowers entrance barriers while preserving a singular code base and readability. Providing core tools enhancing GPU developer facilitates further developments to improve high performance, parallel computing.\",\"PeriodicalId\":89305,\"journal\":{\"name\":\"Visualization and data analysis\",\"volume\":\"48 1\",\"pages\":\"1-9\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-02-14\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"7\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"Visualization and data analysis\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.2352/ISSN.2470-1173.2016.1.VDA-487\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"Visualization and data analysis","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.2352/ISSN.2470-1173.2016.1.VDA-487","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 7

摘要

使用gpu进行并行处理可以大幅提高包括图像处理在内的许多学科的算法性能。串行算法通常被转换为并行CUDA或OpenCL算法。要执行这种转换,用户必须首先克服各种GPU开发入门障碍。这些障碍因用户而异,但通常可能包括学习使用所选API编程,理解并行处理和优化的复杂性,以及其他问题,如维护两组代码。专家和新手都经历过这样的障碍。利用Clang/LLVM提供的独特的源到源转换工具,我们创建了一个从c++生成CUDA的工具。这样的转换减少了开发GPU软件所遇到的障碍,并且可以提高效率和修改速度,无论经验如何。图像处理算法特别受益于我们的工具促进的快速修订周期。这篇手稿详细介绍了gpu,一个开源的跨平台工具,它执行c++到CUDA源到源的转换。我们给出了使用常见图像处理算法的实验结果。该工具降低了进入门槛,同时保留了单一的代码库和可读性。提供核心工具增强GPU开发人员促进进一步开发,以提高高性能,并行计算。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Paper: Togpu: Automatic Source Transformation from C++ to CUDA using Clang/LLVM
Parallel processing using GPUs provides substantial increases in algorithm performance across many disciplines including image processing. Serial algorithms are commonly translated to parallel CUDA or OpenCL algorithms. To perform this translation a user must first overcome various GPU development entry barriers. 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 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. Image processing algorithms specifically benefit greatly from a quick revision cycle which our tool facilitates. This manuscript details togpu, an open source, cross platform tool which performs C++ to CUDA source to source transformations. We present experimentation results using common image processing algorithms. The tool lowers entrance barriers while preserving a singular code base and readability. Providing core tools enhancing GPU developer facilitates further developments to improve high performance, parallel computing.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
0.00%
发文量
0
×
引用
GB/T 7714-2015
复制
MLA
复制
APA
复制
导出至
BibTeX EndNote RefMan NoteFirst NoteExpress
×
提示
您的信息不完整,为了账户安全,请先补充。
现在去补充
×
提示
您因"违规操作"
具体请查看互助需知
我知道了
×
提示
确定
请完成安全验证×
copy
已复制链接
快去分享给好友吧!
我知道了
右上角分享
点击右上角分享
0
联系我们:info@booksci.cn Book学术提供免费学术资源搜索服务,方便国内外学者检索中英文文献。致力于提供最便捷和优质的服务体验。 Copyright © 2023 布克学术 All rights reserved.
京ICP备2023020795号-1
ghs 京公网安备 11010802042870号
Book学术文献互助
Book学术文献互助群
群 号:604180095
Book学术官方微信