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

#235 in Hardware support

Download history 1517/week @ 2024-07-21 1300/week @ 2024-07-28 1112/week @ 2024-08-04 1363/week @ 2024-08-11 1187/week @ 2024-08-18 1256/week @ 2024-08-25 1317/week @ 2024-09-01 1222/week @ 2024-09-08 1112/week @ 2024-09-15 1226/week @ 2024-09-22 1064/week @ 2024-09-29 1013/week @ 2024-10-06 1024/week @ 2024-10-13 911/week @ 2024-10-20 1140/week @ 2024-10-27 1610/week @ 2024-11-03

4,755 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