Skip to content

Conversation

AlexeySachkov
Copy link
Contributor

This is a cherry-pick of #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.

…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants