[][src]Crate dynamic_ocl

Dynamic bindings to OpenCL

This library provides dynamically-loaded bindings to the system OpenCL library, allowing you to add optional OpenCL support to an application without requiring it as a linker dependency. Two APIs are available - raw, unsafe, one-to-one bindings to the OpenCL C API, and a higher-level, safe(r) and more convenient Rust API.

The safe Rust API is only provided with the safe feature flag set, which is enabled by default. If you prefer only the unsafe raw bindings, you can disable the feature flag by setting default_features = false for the dependency in your project manifest.

Re-exports

pub extern crate dlopen;

Modules

buffer

Buffers

context

Contexts

device

Devices

kernel

Kernels

platform

Platforms

program

Programs

queue

Command queues

raw

Raw, unsafe bindings to OpenCL C API, with minimal extras.

util

Structs

ApiError

An error code returned by an OpenCL API call

Enums

Error

An error related to OpenCL

Functions

load_opencl

Attempt to load the system OpenCL library, if not already loaded.

Type Definitions

Result

An OpenCL result type