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

Fix 887 #888

Merged
merged 3 commits into from
Jul 24, 2024
Merged

Fix 887 #888

merged 3 commits into from
Jul 24, 2024

Conversation

pvelesko
Copy link
Collaborator

@pvelesko pvelesko commented Jul 23, 2024

Once main thread exists main(), all HIP calls should have already been completed. It is up to the user to make sure that happens. When does doesn't happen, we should handle such case gracefully.

Every HIP API call starts with CHIPInitialize. Check if backend has already been destroyed and if so, return error.
Fixes #887

Return hipInitializationError if backend was already destroyed
@pvelesko pvelesko merged commit 083c374 into main Jul 24, 2024
31 checks passed
@pvelesko pvelesko deleted the fix-887 branch July 24, 2024 09:28
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.

Level0 backend is uninitialized before destructor for custom class is called
1 participant