Skip to content

[SYCL][L0] Fix the bug in pi_context::finalize #2873

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

Merged
merged 1 commit into from
Dec 8, 2020

Conversation

bso-intel
Copy link
Contributor

The previous PR 2838 caused some post-commit tests to fail because of the ordering bug in pi_context::finalize().
Previously, I called zeContextDestroy followed by delete pi_context.
It should be the other way around because the destrucor of pi_context requires access to ZeContext when deallocating some member objects.
This PR intended to fix that bug.

Signed-off-by: Byoungro So byoungro.so@intel.com

Signed-off-by: Byoungro So <byoungro.so@intel.com>
@bader bader merged commit 6cfa921 into intel:sycl Dec 8, 2020
@bso-intel bso-intel deleted the fix-finalize branch December 8, 2020 17:21
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.

3 participants