Skip to content
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

Data race in level_zero_tests::get_default_context() #27

Open
Alexandr-Konovalov opened this issue Feb 22, 2023 · 0 comments
Open

Data race in level_zero_tests::get_default_context() #27

Alexandr-Konovalov opened this issue Feb 22, 2023 · 0 comments

Comments

@Alexandr-Konovalov
Copy link

Dear colleagues,

There is a data race between ze_context_handle_t::context checking and its initialization in level_zero_tests::get_default_context(). The context may be unsuccessfully checked in the condition by several threads and then assigned simultaneously as well. Multithread initialization is expected in for example, zeImmediateCommandListMultiTthreadTest::GivenMultipleThreadsWhenCreateCloseAndDestroyImmediateCommandListsThenReturnSuccess.

Same issue affects the code below.

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

No branches or pull requests

1 participant