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

#245 in Hardware support

Download history 1092/week @ 2024-08-01 1292/week @ 2024-08-08 1272/week @ 2024-08-15 1135/week @ 2024-08-22 1377/week @ 2024-08-29 1109/week @ 2024-09-05 1266/week @ 2024-09-12 1249/week @ 2024-09-19 1064/week @ 2024-09-26 1064/week @ 2024-10-03 1027/week @ 2024-10-10 906/week @ 2024-10-17 1074/week @ 2024-10-24 1399/week @ 2024-10-31 2003/week @ 2024-11-07 1853/week @ 2024-11-14

6,528 downloads per month
Used in 71 crates (6 directly)

MIT/Apache

405KB
2K SLoC

OpenCL C FFI Bindings.

Documentation

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.

Troubleshooting

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

License

Licensed under either of:

at your option.

Contribution

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.”

Dependencies