arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 1609.01257cs.DC
收藏

cf4ocl:用于OpenCL的C框架

cf4ocl: a C framework for OpenCL

Nuno Fachada, Vitor V. Lopes, Rui C. Martins, Agostinho C. Rosa

摘要:

OpenCL是一种用于异构计算设备(如GPU、CPU、DSP或FPGA)并行编程的开放标准。但是,其C主机API的冗长可能会阻碍应用程序开发。在本文中,我们提出了cf4ocl,一个软件库的快速开发的OpenCL程序在纯C。它旨在减少OpenCL API的冗长,提供简单的存储管理,集成的事件分析(例如,内核执行和数据传输),简单但可扩展的设备选择机制和用户友好的错误管理。我们比较了两个版本的概念性应用程序示例,一个基于cf4ocl,另一个直接使用OpenCL主机API开发。结果表明,前者更容易实现,并提供更多的功能,在一个有效的计算开销可以忽略不计的成本。此外,cf4ocl提供的工具允许快速分析如何优化应用程序。

英文摘要:

OpenCL is an open standard for parallel programming of heterogeneous compute devices, such as GPUs, CPUs, DSPs or FPGAs. However, the verbosity of its C host API can hinder application development. In this paper we present cf4ocl, a software library for rapid development of OpenCL programs in pure C. It aims to reduce the verbosity of the OpenCL API, offering straightforward memory management, integrated profiling of events (e.g., kernel execution and data transfers), simple but extensible device selection mechanism and user-friendly error management. We compare two versions of a conceptual application example, one based on cf4ocl, the other developed directly with the OpenCL host API. Results show that the former is simpler to implement and offers more features, at the cost of an effectively negligible computational overhead. Additionally, the tools provided with cf4ocl allowed for a quick analysis on how to optimize the application.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑