面向Lua的GPU抽象

Raphael Ribeiro, Paulo Motta
{"title":"面向Lua的GPU抽象","authors":"Raphael Ribeiro, Paulo Motta","doi":"10.1109/SBAC-PADW.2016.11","DOIUrl":null,"url":null,"abstract":"The use of GPUs for accelerating parallel applications is a consolidated approach. However, it is still difficult to write applications for this type of hardware, which is mostly done in compiled languages like C. Some effort has been employed to provide developers with libraries and frameworks for interpreted languages to be able to take advantage of the computing capabilities of GPUs. In this context we created a hardware abstraction for the Lua programming language that uses the facilities of the LLVM project to compile part of the application to the GPU native format, while the rest of the application remains in interpreted Lua. This main application controls the GPU device through a library and loads the compiled function for execution, in the end it may retrieve the results from the device. This compilation of the Lua function code into a GPU kernel is done in a transparent fashion, allowing the user to access the underlying hardware, without the complexities related to the traditional GPU programming.","PeriodicalId":186179,"journal":{"name":"2016 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)","volume":"83 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2016-10-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"2","resultStr":"{\"title\":\"Towards a GPU Abstraction for Lua\",\"authors\":\"Raphael Ribeiro, Paulo Motta\",\"doi\":\"10.1109/SBAC-PADW.2016.11\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"The use of GPUs for accelerating parallel applications is a consolidated approach. However, it is still difficult to write applications for this type of hardware, which is mostly done in compiled languages like C. Some effort has been employed to provide developers with libraries and frameworks for interpreted languages to be able to take advantage of the computing capabilities of GPUs. In this context we created a hardware abstraction for the Lua programming language that uses the facilities of the LLVM project to compile part of the application to the GPU native format, while the rest of the application remains in interpreted Lua. This main application controls the GPU device through a library and loads the compiled function for execution, in the end it may retrieve the results from the device. This compilation of the Lua function code into a GPU kernel is done in a transparent fashion, allowing the user to access the underlying hardware, without the complexities related to the traditional GPU programming.\",\"PeriodicalId\":186179,\"journal\":{\"name\":\"2016 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)\",\"volume\":\"83 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2016-10-01\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"2\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"2016 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1109/SBAC-PADW.2016.11\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"2016 International Symposium on Computer Architecture and High Performance Computing Workshops (SBAC-PADW)","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1109/SBAC-PADW.2016.11","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
引用次数: 2

摘要

使用gpu加速并行应用程序是一种统一的方法。然而,为这种类型的硬件编写应用程序仍然很困难,这主要是在c等编译语言中完成的。一些努力已经为开发人员提供了解释语言的库和框架,以便能够利用gpu的计算能力。在这种情况下,我们为Lua编程语言创建了一个硬件抽象,它使用LLVM项目的功能将部分应用程序编译为GPU原生格式,而应用程序的其余部分仍保留在解释Lua中。这个主应用程序通过一个库来控制GPU设备,并加载编译后的函数执行,最后它可以从设备中检索结果。这种将Lua函数代码编译成GPU内核的方式是透明的,允许用户访问底层硬件,而没有与传统GPU编程相关的复杂性。
本文章由计算机程序翻译,如有差异,请以英文原文为准。
Towards a GPU Abstraction for Lua
The use of GPUs for accelerating parallel applications is a consolidated approach. However, it is still difficult to write applications for this type of hardware, which is mostly done in compiled languages like C. Some effort has been employed to provide developers with libraries and frameworks for interpreted languages to be able to take advantage of the computing capabilities of GPUs. In this context we created a hardware abstraction for the Lua programming language that uses the facilities of the LLVM project to compile part of the application to the GPU native format, while the rest of the application remains in interpreted Lua. This main application controls the GPU device through a library and loads the compiled function for execution, in the end it may retrieve the results from the device. This compilation of the Lua function code into a GPU kernel is done in a transparent fashion, allowing the user to access the underlying hardware, without the complexities related to the traditional GPU programming.
求助全文
通过发布文献求助,成功后即可免费获取论文全文。 去求助
来源期刊
自引率
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学术文献互助群
群 号:481959085
Book学术官方微信