Skip to content

[SYCL][UR] Unify logging and leak checking for L0 v1 and v2 #19328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Jul 10, 2025

Conversation

igchor
Copy link
Member

@igchor igchor commented Jul 7, 2025

This is needed so that we can enable V2 adapter by default on certain platforms: #19333

The reason is that we need to load both adapters (legacy and v2) to check the device version. However, loading v2 adapter causes L0 loader to emit logs for all API calls (if ZE_DEBUG=1 is set). Since the legacy adapter used different logic for printing API calls, this would result in printing the same logs twice. This patch fixes that.

@igchor igchor temporarily deployed to WindowsCILock July 9, 2025 20:36 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock July 9, 2025 21:02 — with GitHub Actions Inactive
@igchor igchor temporarily deployed to WindowsCILock July 9, 2025 21:02 — with GitHub Actions Inactive
To account for zeDriverGet calls done by the
legacy adapter in checkL0LoaderTeardown()
@igchor igchor marked this pull request as ready for review July 9, 2025 22:12
@igchor igchor requested review from a team as code owners July 9, 2025 22:12
@igchor igchor requested review from aelovikov-intel and reble July 9, 2025 22:12
@igchor
Copy link
Member Author

igchor commented Jul 10, 2025

@intel/sycl-graphs-reviewers could you please take a look? I had to include a fix for kernel leak in command_buffer implementation for v2

@igchor igchor merged commit 5f86594 into intel:sycl Jul 10, 2025
58 of 60 checks passed
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.

4 participants