Skip to content

Fix 887#888

Merged
pvelesko merged 3 commits intomainfrom
fix-887
Jul 24, 2024
Merged

Fix 887#888
pvelesko merged 3 commits intomainfrom
fix-887

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

pvelesko added 2 commits July 23, 2024 16:52
Return hipInitializationError if backend was already destroyed
@pvelesko pvelesko merged commit 083c374 into main Jul 24, 2024
@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