Skip to content

[GPU][Coverity] Add mutex for getting onednn engine #30441

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

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

Conversation

dnkurek
Copy link
Contributor

@dnkurek dnkurek commented May 6, 2025

Solves Coverity issue which pointed to a possible data race condition

Details:

  • Add mutex

Tickets:

  • 167165

@dnkurek dnkurek requested review from a team as code owners May 6, 2025 09:38
@github-actions github-actions bot added the category: GPU OpenVINO GPU plugin label May 6, 2025
Solves Coverity issue which pointed to a possible data race
@p-durandin p-durandin added this to the 2025.2 milestone May 6, 2025
Copy link
Contributor

@isanghao isanghao left a comment

Choose a reason for hiding this comment

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

I don't think it is a correct use mutex. It is not protecting anything.

@dnkurek
Copy link
Contributor Author

dnkurek commented May 7, 2025

I don't think it is a correct use mutex. It is not protecting anything.

Technically it's protecting _onednn_engine variable but in reality such a race condition won't ever happen. Coverity complains about it though. Maybe we could mark it as a false positive

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants