dpctl.SyclDevice.addressof_ref

SyclDevice.addressof_ref()

Returns the address of the DPCTLSyclDeviceRef pointer as a size_t.

Example:
>>> import dpctl
>>> dev = dpctl.select_cpu_device()
>>> hex(dev.addressof_ref())
'0x55b18ec649d0'
Returns:

The address of the DPCTLSyclDeviceRef object used to create this dpctl.SyclDevice cast to a size_t.

Return type:

int