dpctl.SyclContext.get_devices

SyclContext.get_devices()

Returns the list of dpctl.SyclDevice objects associated with dpctl.SyclContext instance.

Returns:

A list of dpctl.SyclDevice objects that belong to this context.

Return type:

list

Raises:

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