Module cl3::device

source ·
Expand description

OpenCL Device API.

Structs§

Constants§

Functions§

  • Create sub-devices by partitioning an OpenCL device. Calls clCreateSubDevices 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 a cl_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 a cl_device_integer_dot_product_acceleration_properties_khr structure.
  • Convert a u8 slice (e.g. from get_device_info) into a cl_device_pci_bus_info_khr structure.
  • Release an OpenCL device.
    Calls clReleaseDevice to decrement the device reference count if device is a valid sub-device created by a call to clCreateSubDevices.
  • Retain an OpenCL device.
    Calls clRetainDevice 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.

Type Aliases§