[dependencies.cl3]
version = "0.11"
[dependencies.libc]
version = "0.2"
[dependencies.serde]
optional = true
version = "1.0"
[dev-dependencies.serde_json]
version = "1.0"
[[example]]
name = "basic"
path = "examples/basic.rs"
[[example]]
name = "clinfo"
path = "examples/clinfo.rs"
[[example]]
name = "opencl2image"
path = "examples/opencl2image.rs"
[[example]]
name = "opencl2serde"
path = "examples/opencl2serde.rs"
[[example]]
name = "opencl2svm"
path = "examples/opencl2svm.rs"
[features]
CL_VERSION_1_1 = ["cl3/CL_VERSION_1_1"]
CL_VERSION_1_2 = ["cl3/CL_VERSION_1_2"]
CL_VERSION_2_0 = ["cl3/CL_VERSION_2_0"]
CL_VERSION_2_1 = ["cl3/CL_VERSION_2_1"]
CL_VERSION_2_2 = ["cl3/CL_VERSION_2_2"]
CL_VERSION_3_0 = ["cl3/CL_VERSION_3_0"]
cl_apple_contextloggingfunctions = ["cl3/cl_apple_contextloggingfunctions"]
cl_apple_setmemobjectdestructor = ["cl3/cl_apple_setmemobjectdestructor"]
cl_arm_import_memory = ["cl3/cl_arm_import_memory"]
cl_arm_shared_virtual_memory = ["cl3/cl_arm_shared_virtual_memory"]
cl_ext_device_fission = ["cl3/cl_ext_device_fission"]
cl_ext_image_requirements_info = ["cl3/cl_ext_image_requirements_info"]
cl_ext_migrate_memobject = ["cl3/cl_ext_migrate_memobject"]
cl_img_generate_mipmap = ["cl3/cl_img_generate_mipmap"]
cl_img_use_gralloc_ptr = ["cl3/cl_img_use_gralloc_ptr"]
cl_intel_accelerator = ["cl3/cl_intel_accelerator"]
cl_intel_create_buffer_with_properties = ["cl3/cl_intel_create_buffer_with_properties"]
cl_intel_dx9_media_sharing = ["cl3/cl_intel_dx9_media_sharing"]
cl_intel_program_scope_host_pipe = ["cl3/cl_intel_program_scope_host_pipe"]
cl_intel_unified_shared_memory = ["cl3/cl_intel_unified_shared_memory"]
cl_khr_command_buffer = ["cl3/cl_khr_command_buffer"]
cl_khr_command_buffer_multi_device = ["cl3/cl_khr_command_buffer_multi_device"]
cl_khr_command_buffer_mutable_dispatch = ["cl3/cl_khr_command_buffer_mutable_dispatch"]
cl_khr_create_command_queue = ["cl3/cl_khr_create_command_queue"]
cl_khr_d3d10_sharing = ["cl3/cl_khr_d3d10_sharing"]
cl_khr_d3d11_sharing = ["cl3/cl_khr_d3d11_sharing"]
cl_khr_dx9_media_sharing = ["cl3/cl_khr_dx9_media_sharing"]
cl_khr_egl_event = ["cl3/cl_khr_egl_event"]
cl_khr_egl_image = ["cl3/cl_khr_egl_image"]
cl_khr_external_memory = ["cl3/cl_khr_external_memory"]
cl_khr_external_semaphore = ["cl3/cl_khr_external_semaphore"]
cl_khr_external_semaphore_sync_fd = ["cl3/cl_khr_external_semaphore_sync_fd"]
cl_khr_gl_event = ["cl3/cl_khr_gl_event"]
cl_khr_gl_sharing = ["cl3/cl_khr_gl_sharing"]
cl_khr_icd = ["cl3/cl_khr_icd"]
cl_khr_il_program = ["cl3/cl_khr_il_program"]
cl_khr_semaphore = ["cl3/cl_khr_semaphore"]
cl_khr_subgroups = ["cl3/cl_khr_subgroups"]
cl_khr_suggested_local_work_size = ["cl3/cl_khr_suggested_local_work_size"]
cl_khr_terminate_context = ["cl3/cl_khr_terminate_context"]
cl_loader_info = ["cl3/cl_loader_info"]
cl_loader_layers = ["cl3/cl_loader_layers"]
cl_pocl_content_size = ["cl3/cl_pocl_content_size"]
cl_qcom_ext_host_ptr = ["cl3/cl_qcom_ext_host_ptr"]
default = ["dynamic"]
dynamic = ["cl3/dynamic"]
static = ["cl3/static"]
[lib]
name = "opencl3"
path = "src/lib.rs"
[lints.clippy]
enum_glob_use = "deny"
nursery = "deny"
unwrap_used = "deny"
[package]
authors = ["Ken Barker <ken.barker@via-technology.aero>"]
autobenches = false
autobins = false
autoexamples = false
autolib = false
autotests = false
build = false
categories = ["api-bindings", "asynchronous"]
description = "A Rust implementation of the Khronos OpenCL 3.0 API and extensions."
documentation = "https://docs.rs/opencl3/"
edition = "2021"
homepage = "https://github.com/kenba/opencl3"
keywords = ["opencl", "gpu", "gpgpu"]
license = "Apache-2.0"
name = "opencl3"
readme = "README.md"
repository = "https://github.com/kenba/opencl3"
version = "0.10.0"
[[test]]
name = "integration_test"
path = "tests/integration_test.rs"
[[test]]
name = "opencl2_kernel_test"
path = "tests/opencl2_kernel_test.rs"