Expand description
af-opencl-interop package is to used only when the application intends to mix arrayfire code with raw OpenCL code.
Functions from this crate return OpenCL C API opaque pointers typedefs
Enums§
- Device
Type - OpenCL Device Type
- Vendor
Platform - OpenCL Vendor Platform
Functions§
- add_
device_ context - Push user provided device, context and queue tuple to ArrayFire device mamanger
- delete_
device_ context - Remove the user provided device, context pair from ArrayFire device mamanger
- get_
context - Get the handle to active ArrayFire OpenCL context
- get_
device_ id - Get the handle to active ArrayFire OpenCL device
- get_
device_ type - get_
platform - Fetch Active ArrayFire device’s vendor platform
- get_
queue - Get the handle to active ArrayFire OpenCL command queue
- set_
device_ context - Set the device identified by device & context pair as the active device for ArrayFire
- set_
device_ id - Set the cl_device_id as the active ArrayFire OpenCL device