opencl-sys

Crates.ioopencl-sys
lib.rsopencl-sys
version
sourcesrc
created_at2017-11-10 23:12:19.941611
updated_at2024-12-07 13:09:28.027338
descriptionOpenCL C FFI bindings for the Rust programming language.
homepagehttps://github.com/kenba/opencl-sys-rs
repositoryhttps://github.com/kenba/opencl-sys-rs
max_upload_size
id38926
Cargo.toml error:TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include`
size0
Volker Mische (vmx)

documentation

https://docs.rs/opencl-sys/

README

crates.io docs.io OpenCL 3.0 License Rust

OpenCL C FFI bindings for the Rust programming language.

Description

Rust FFI Bindings to the Khronos OpenCL C language headers, see the OpenCL Resource Guide.

OpenCL Packages
OpenCL Packages

The static API for OpenCL versions and extensions is controlled by Rust features such as "static", "CL_VERSION_2_0" and "cl_khr_gl_sharing".

Rust deprecation warnings are given for OpenCL API functions that are deprecated by an enabled OpenCL version e.g., clCreateCommandQueue is deprecated whenever "CL_VERSION_2_0" (or above) is enabled.

The Rust FFI files attempt to match the format and layout of the original C source files instead of bindgen output files to ease maintenance.

bindgen ../OpenCL-Headers/CL/opencl.h -o opencl.rs -- -I ../OpenCL-Headers/CL

The library is declared no_std.

Use

OpenCL requires that an appropriate OpenCL hardware driver(s) and an OpenCL Installable Client Driver (ICD) are installed.
OpenCL GPU hardware driver(s) are installed with graphics drivers by the main manufacturers: Nvidia, AMD and Intel.
However, an OpenCL ICD must usually be installed manually by:

Note: you do not need to install an OpenCL ICD from the same manufacturer as your hardware.
In general the more up to date the OpenCL ICD, the better.

Contribution

If you want to contribute through code or documentation, the Contributing guide is the best place to start.
If you have any questions, please feel free to ask. Just please abide by our Code of Conduct.

License

Licensed under the Apache License, Version 2.0, as per Khronos Group OpenCL.
You may obtain a copy of the License at: http://www.apache.org/licenses/LICENSE-2.0

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 licensed as above, without any additional terms or conditions.

OpenCL and the OpenCL logo are trademarks of Apple Inc. used under license by Khronos.

Commit count: 50

cargo fmt