Skip to content

ocl, ze: remove error messages for destroy calls from a wrapper#5340

Open
dzarukin wants to merge 2 commits into
mainfrom
dzarukin/remove_ocl_ze_error_msg
Open

ocl, ze: remove error messages for destroy calls from a wrapper#5340
dzarukin wants to merge 2 commits into
mainfrom
dzarukin/remove_ocl_ze_error_msg

Conversation

@dzarukin

@dzarukin dzarukin commented Jun 16, 2026

Copy link
Copy Markdown
Contributor

https://jira.devtools.intel.com/browse/MFDNN-15099
https://jira.devtools.intel.com/browse/MFDNN-15133

For OpenCL v3.1 the library will de-initialize all its objects before global static objects when the application finishes.
This affects the way our primitive/kernel cache works and all calls to destroy objects become invalid and start spamming tons of messages.
It looks like there's nothing critical happening with not destroying those objects ahead of time. Thus, the decision is to simply ignore the specific message when destroying objects that get populated in the cache, including objects the library manages itself.

The clean alternative to this approach is to reset cache by setting its capacity to 0 but this new requirement will transitively be put on ALL applications with oneDNN integration, which is a huge impact and doesn't seem like a user-friendly option.

Currently, Infra filters out these messages. Once this PR lands, those filters will be reverted, too.

Standalone CI with filters disabled

@dzarukin dzarukin requested review from a team as code owners June 16, 2026 19:34
@github-actions github-actions Bot added platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel component:common labels Jun 16, 2026
@dzarukin

Copy link
Copy Markdown
Contributor Author

make test
disable test_device_cpu
disable build_cpu_runtime_omp
disable build_cpu_runtime_sycl
disable build_cpu_runtime_tbb
enable build_gpu_runtime_ze
enable arch_gpu_xe3-lpg

Comment thread src/xpu/ocl/utils.hpp Outdated
dzarukin added 2 commits June 16, 2026 14:36
This is done to have an ability to disable warnings for destruction API
under wrapper_t.
@dzarukin dzarukin force-pushed the dzarukin/remove_ocl_ze_error_msg branch from 01efc69 to 02540cb Compare June 16, 2026 22:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component:common platform:gpu-intel Codeowner: @oneapi-src/onednn-gpu-intel

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants