dpctl.SyclDevice.component_devices

SyclDevice.component_devices()

Returns a list of component devices contained in this SYCL device.

The returned list will be empty if this SYCL device is not a composite device, i.e., if is_composite is False.

Returns:

List of component devices.

Return type:

List[dpctl.SyclDevice]

Raises:

ValueError – If the DPCTLDevice_GetComponentDevices call returned NULL instead of a DPCTLDeviceVectorRef object.