Function opencl3::device::create_sub_devices[][src]

pub fn create_sub_devices(
    in_device: *mut c_void,
    properties: &[isize]
) -> Result<Vec<*mut c_void, Global>, i32>

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.