Skip to content

Revert "[SYCL] Fix device image lifetime for jit_compiler (#22785)" - #22855

Merged
sarnex merged 1 commit into
intel:syclfrom
KseniyaTikhomirova:revert_cache
Aug 3, 2026
Merged

Revert "[SYCL] Fix device image lifetime for jit_compiler (#22785)"#22855
sarnex merged 1 commit into
intel:syclfrom
KseniyaTikhomirova:revert_cache

Conversation

@KseniyaTikhomirova

Copy link
Copy Markdown
Contributor

This reverts commit 5d03593.

This fix is still valid and should be reapplied but jit_compiler uses sycl_jit library and we need to fix sycl_jit resources lifetime as well.
sycl-jit uses singleton approach to store its resources.
it the current state sycl_jit resources are destroyed before test static cache destruction happens and before sycl_jit library is unloaded.
There is no perfect solution to make sycl_jit resources to live longer. Possible fixes are: introduce init/close to sycl_jit library to be able to control obj lifetime or use linux ctor/dtor priorities (as it is done for SYCL RT) where sycl-jit resources will be allocated/deallocated.

@sarnex
sarnex merged commit 6d164b7 into intel:sycl Aug 3, 2026
28 of 31 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.

2 participants