Expand description
OpenCL
Device API.
Structs§
Constants§
- Device Vendor Ids. The
PCie
IDs of someOpenCL
device vendors as returned byget_device_info
, i.e.:clGetDeviceInfo
-CL_DEVICE_VENDOR_ID
They were obtained from thePCIe
ID Repository: https://pci-ids.ucw.cz/
Functions§
- Create sub-devices by partitioning an
OpenCL
device. CallsclCreateSubDevices
to get the partitioned sub-devices. - A text representation of an
OpenCL
device type, see: Device Types. - Convert a u8 slice (e.g. from
get_device_info
) into acl_amd_device_topology structure
. - Get data about an
OpenCL
device. Calls clGetDeviceInfo to get the desired data about the device. - Get the list of available devices of the given type on a platform.
Calls clGetDeviceIDs to get the available device ids on the platform. - Get specific information about an
OpenCL
device.
Calls clGetDeviceInfo to get the desired information about the device. - Convert a u8 slice (e.g. from
get_device_info
) into acl_device_integer_dot_product_acceleration_properties_khr structure
. - Convert a u8 slice (e.g. from
get_device_info
) into acl_device_pci_bus_info_khr structure
. - Release an
OpenCL
device.
CallsclReleaseDevice
to decrement the device reference count if device is a valid sub-device created by a call to clCreateSubDevices. - Retain an
OpenCL
device.
CallsclRetainDevice
to increment the device reference count if device is a valid sub-device created by a call to clCreateSubDevices. - A text representation of an
OpenCL
vendor id.