An open API service indexing awesome lists of open source software.

https://github.com/upbit/opencl-helper

A simple OpenCL example written in C
https://github.com/upbit/opencl-helper

Last synced: 9 months ago
JSON representation

A simple OpenCL example written in C

Awesome Lists containing this project

README

          

opencl-helper
=============

A simple OpenCL example written in C

usage:
~~~~~ c
OpenCL_Config gstConfig;
OpenCL_Config *pstConfig = &gstConfig;

// Init OpenCL with default GPU device
clInitOpenCLByDefault(pstConfig, CL_DEVICE_TYPE_GPU);
clBuildProgramFromSource(pstConfig, "kernel.cl");

// clEnqueueNDRangeKernel() ..

clFreeOpenCLResources(pstConfig);
~~~~~