10 releases

0.4.3 Oct 9, 2023
0.4.2 Jan 10, 2019
0.4.1 Feb 21, 2018
0.4.0 Nov 11, 2017
0.2.1 Sep 19, 2016

#301 in Hardware support

Download history 756/week @ 2023-07-29 1299/week @ 2023-08-05 880/week @ 2023-08-12 790/week @ 2023-08-19 762/week @ 2023-08-26 893/week @ 2023-09-02 840/week @ 2023-09-09 889/week @ 2023-09-16 596/week @ 2023-09-23 679/week @ 2023-09-30 1052/week @ 2023-10-07 1296/week @ 2023-10-14 1264/week @ 2023-10-21 1219/week @ 2023-10-28 1410/week @ 2023-11-04 1029/week @ 2023-11-11

5,096 downloads per month
Used in 65 crates (5 directly)



OpenCL C FFI Bindings.


For a high level, easier to use, and far less verbose OpenCL interface (that compiles to virtually the same thing) see the ocl crate.

Example usage exists within the ocl-core repo (see: https://github.com/cogciprocate/ocl/blob/master/ocl-core/src/functions.rs).

If you have need of any unimplemented functionality please file an issue and request it.


Compiling on Windows (particularly MSVC) takes a bit of effort. Better documentation is needed (please contribute!). If you have trouble please file an issue and let us know about the problem so we can improve our documentation.

Your device drivers should include OpenCL drivers. If not, download the appropriate SDK from one of the following links: AMD, NVIDIA, Intel


Licensed under either of:

at your option.


Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

*“OpenCL and the OpenCL logo are trademarks of Apple Inc. used by permission by Khronos.”*
*“Vulkan and the Vulkan logo are trademarks of the Khronos Group Inc.”*