Skip to content

[UR][L0] Prefer core usable-memory query with Sysman fallback#21339

Open
winstonzhang-intel wants to merge 2 commits intointel:syclfrom
winstonzhang-intel:urlza-719
Open

[UR][L0] Prefer core usable-memory query with Sysman fallback#21339
winstonzhang-intel wants to merge 2 commits intointel:syclfrom
winstonzhang-intel:urlza-719

Conversation

@winstonzhang-intel
Copy link
Contributor

Use ze_device_usablemem_size_ext_properties_t for UR_DEVICE_INFO_GLOBAL_MEM_FREE when the driver exposes the usable-memory extension/version, and keep zesMemoryGetState as the fallback path when unsupported.

This updates shared L0 device info logic used by both L0 and L0v2 adapters, with compile-time guards for older Level Zero headers.

Use ze_device_usablemem_size_ext_properties_t for UR_DEVICE_INFO_GLOBAL_MEM_FREE
when the driver exposes the usable-memory extension/version, and keep
zesMemoryGetState as the fallback path when unsupported.

This updates shared L0 device info logic used by both L0 and L0v2 adapters,
with compile-time guards for older Level Zero headers.

Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
Copy link

@aravindksg aravindksg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@winstonzhang-intel winstonzhang-intel marked this pull request as ready for review February 24, 2026 17:00
@winstonzhang-intel winstonzhang-intel requested a review from a team as a code owner February 24, 2026 17:00
@winstonzhang-intel winstonzhang-intel requested review from a team as code owners February 24, 2026 19:45
Signed-off-by: Zhang, Winston <winston.zhang@intel.com>
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.

2 participants