dpctl.SyclDevice.component_devices

SyclDevice.component_devices()

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

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

Returns:

Tuple of component devices.

Return type:

Tuple[dpctl.SyclDevice]

Raises:

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