C Framework for OpenCL

View the Project on GitHub FakenMC/cf4ocl


The C Framework for OpenCL, cf4ocl, is a cross-platform pure C object-oriented framework for developing and benchmarking OpenCL projects in C. It aims to:

  1. Promote the rapid development of OpenCL programs in C, with support for C++.
  2. Assist in the benchmarking of OpenCL events, such as kernel execution and data transfers.
  3. Simplify the analysis of the OpenCL environment and of kernel requirements.




Get cf4ocl, either by building from source or using the provided binaries. Take a look at the examples and the user guide and API. Any feedback is welcome.

Not yet implemented


Library code is licensed under LGPLv3, while the remaining code (utilities, examples and tests) is licensed under GPLv3.

Other useful C frameworks/utilities for OpenCL

If cf4ocl does not meet your requirements, take a look at the following projects: