dpctl.SyclContext.device_count

SyclContext.device_count

The number of sycl devices associated with the dpctl.SyclContext instance.

Returns:

Number of devices associated with the context.

Return type:

int

Raises:

ValueError – If DPCTLContext_DeviceCount call led to a failure.