Registry / other / opencl3

opencl3

JSON →
library0.12.3rscratesunverified

A Rust implementation of the Khronos OpenCL 3.0 API and extensions.

# Cargo.toml [dependencies] opencl3 = "0.12.3"
INSTALL
IMPORT
SIG · OPENCL3
O
opencl3
otherrustv0.12.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Context
use opencl3::Context;

Creates an OpenCL context from the first available device.

use opencl3::Context; fn main() { let platform = opencl3::platform::get_platforms().unwrap().remove(0); let devices = opencl3::device::get_all_devices(&platform).unwrap(); let context = Context::from_device(&devices[0]).unwrap(); println!("OpenCL context created"); }
Debug
Known issues
gotchaRequires OpenCL runtime and drivers installed.
fix
Install OpenCL drivers for your GPU or CPU.
affects: >=0.0.0
Upgrade
Version history
0.12.3latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
opencl3 — cargo add opencl3 · libregistry