dpctl.SyclContext.sycl_platform

SyclContext.sycl_platform

Returns the platform associated with this context.

Returns:

The platform associated with this context.

Return type:

dpctl.SyclPlatform

Raises:

RuntimeError – If DPCTLContext_GetPlatform fails to return a platform.