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

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.

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

No branches or pull requests

1 participant