Module opencl

Source
Expand description

A module that contains an OpenCL backend.

Structs§

ClBackend
A structure of OpenCL backend.
ClBackendArray
A structure of OpenCL backend array.
ClError
ClError is a newtype around the OpenCL cl_int error number
Context
An OpenCL context object. Implements the Drop trait to call release_context when the object is dropped.
Device
An OpenCL device id and methods to query it.
Platform
An OpenCL platform id and methods to query it.

Constants§

CL_DEVICE_TYPE_ACCELERATOR
CL_DEVICE_TYPE_ALL
CL_DEVICE_TYPE_CPU
CL_DEVICE_TYPE_CUSTOM
CL_DEVICE_TYPE_DEFAULT
CL_DEVICE_TYPE_GPU

Functions§

get_platforms
Get the available OpenCL platforms.

Type Aliases§

cl_device_id