Cargo Features

ocl-core = { version = "0.11.5", default-features = false, features = ["opencl_version_1_1", "opencl_version_1_2", "opencl_version_2_0", "opencl_version_2_1", "opencl_vendor_mesa", "ocl-core-vector"] }
default = ocl-core-vector, opencl_version_1_1, opencl_version_1_2

These default features are set whenever ocl-core is added without default-features = false somewhere in the dependency tree.

opencl_version_1_1 default

Enables opencl_version_1_1 of cl-sys


Specifies the OpenCL version supported by the library being used. Generally,
OpenCL v2.0+ support is still sparse.

opencl_version_1_2 default

Enables opencl_version_1_2 of cl-sys

Affects functions::compile_program, functions::link_program


Enables opencl_version_2_0 of cl-sys


Enables opencl_version_2_1 of cl-sys

Affects functions::create_program_with_il


Enables opencl_vendor_mesa of cl-sys

Features from optional dependencies

In crates that don't use the dep: syntax, optional dependencies automatically become Cargo features.

ocl-core-vector default

Enables ocl-core-vector

Implements all of the vector types and traits.