【24h】

Towards a GPU Abstraction for Lua

机译:面向Lua的GPU抽象

获取原文

摘要

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.
机译:使用GPU加速并行应用程序是一种综合方法。但是,仍然很难为这种类型的硬件编写应用程序,这主要是用诸如C之类的编译语言来完成的。已经做出了一些努力来为开发人员提供用于解释语言的库和框架,以便能够利用计算能力。 GPU。在这种情况下,我们为Lua编程语言创建了一个硬件抽象,该语言使用LLVM项目的功能将应用程序的一部分编译为GPU本机格式,而其余的应用程序仍保留在解释的Lua中。该主应用程序通过一个库控制GPU设备并加载已编译的函数以供执行,最后它可以从设备中检索结果。 Lua功能代码到GPU内核的这种编译是以透明的方式完成的,允许用户访问底层硬件,而无需与传统GPU编程相关的复杂性。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号