[UR] Fix usm pools creation failure at context initialization (#20054)
This is a cherry-pick of intel/llvm#19921
Context creation was failing when sub-sub-devices were exposed, because
the Level Zero adapter attempted to add multiple USM pools with
identical descriptors. This occurred since, for the L0 backend,
sub-sub-devices and their parent sub-devices share the same Level Zero
device handle and should use the same USM pool.
This PR resolves the issue by ensuring only devices with unique Level
Zero
handles are collected for USM pool creation, preventing duplicate pools.
Additionally, this PR fixes an issue with an uninitialized
`ur_device_partition_property_t` variable passed to UR. Previously, this
could result in an unexpected value for `value.affinity_domain` when the
property type was `UR_DEVICE_PARTITION_BY_CSLICE` resulting on error
from
adapter.
Patch-by: Artur Gainullin <artur.gainullin@intel.com>