Function cl3::device::create_sub_devices[][src]

pub fn create_sub_devices(
    in_device: cl_device_id,
    properties: &[cl_device_partition_property]
) -> Result<Vec<cl_device_id>, cl_int>

Create sub-devices by partitioning an OpenCL device. Calls clCreateSubDevices to get the partitioned sub-devices.

  • in_device - the cl_device_id of the OpenCL device to partition.
  • properties - the slice of cl_device_partition_property, see Subdevice Partition.

returns a Result containing a vector of available sub-device ids or the error code from the OpenCL C API function.