Skip to content

[UR][L0] Fix pool iteration during freelist cleanup #18406

New issue

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

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

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: sycl
Choose a base branch
from

Conversation

kswiecicki
Copy link
Contributor

The forEachPool method stops iterating if the callback function returns false. As a result, during EnqueuedPools cleanup, pools later in the chain could be skipped if ealier pools didn't require cleanup.

Additionally, ensure that user-created pools associated with the given queue handle are properly cleaned up during urQueueFinish and urQueueRelease calls.

@kswiecicki kswiecicki requested review from a team as code owners May 12, 2025 08:37
@kswiecicki
Copy link
Contributor Author

CI fails seem to be unrelated to the current PR as they are also present eg. here: https://github.com/intel/llvm/actions/runs/14971061195/job/42054753563.

run_prebuilt_e2e_tests (Intel Arc A-Series Graphics...:

...
********************
Failed Tests (4):
  SYCL :: KernelAndProgram/cache_env_vars.cpp
  SYCL :: KernelAndProgram/cache_env_vars_lin.cpp
  SYCL :: KernelCompiler/opencl.cpp
  SYCL :: KernelCompiler/sycl_cache_pm.cpp

@kswiecicki kswiecicki force-pushed the l0-async-cleanup-fix-2 branch from fc3b83a to 6b5e4fc Compare May 13, 2025 13:09
@kswiecicki kswiecicki deployed to WindowsCILock May 13, 2025 13:34 — with GitHub Actions Active
The forEachPool method stops iterating if the callback function returns
false. As a result, during EnqueuedPools cleanup, pools later in the
chain could be skipped if ealier pools didn't require cleanup.

Additionally, ensure that user-created pools associated with the given
queue handle are properly cleaned up during urQueueFinish and urQueueRelease
calls.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants