16497

cf4ocl: a C framework for OpenCL

Nuno Fachada, Vitor V. Lopes, Rui C. Martins, Agostinho C. Rosa
Institute for Systems and Robotics, LARSyS, Instituto Superior Técnico, Universidade de Lisboa, Lisboa, Portugal

@Article{fachada2016cf4ocl,

   author={Fachada, Nuno and Lopes, Vitor V. and Martins, Rui C. and Rosa, Agostinho C.},

   title={cf4ocl: a C framework for OpenCL},

   year={2017},

   volume={143},

   month={sep},

   note={[cs.DC]},

   url={https://doi.org/10.1016/j.scico.2017.03.005},

   journal={Science of Computer Programming},

   pages={9–19},

   issn={0167-6423},

   doi={10.1016/j.scico.2017.03.005},

   publisher={Elsevier BV}

}

Download Download (PDF)   View View   Source Source   Source codes Source codes

Package:

2731

views

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.
Rating: 2.4/5. From 34 votes.
Please wait...

* * *

* * *

HGPU group © 2010-2024 hgpu.org

All rights belong to the respective authors

Contact us: