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 global teardown of loader handles and check driver status in init_driver #182

Merged
merged 5 commits into from
Aug 21, 2024

Conversation

nrspruit
Copy link
Contributor

  • Moved all loader handle maps to within the loader context to ensure the maps are init and destroyed with library init/destroy vs at start of atexit.
  • Check result of individual driver for zeInit during init_driver().

@nrspruit nrspruit force-pushed the fix_multi_driver_teardown_init branch from 19d59b1 to 209af0b Compare August 20, 2024 16:23
@nrspruit nrspruit marked this pull request as ready for review August 20, 2024 17:20
@lisanna-dettwyler
Copy link
Contributor

These should probably at least be two separate commits. Same PR is fine.

@nrspruit
Copy link
Contributor Author

These should probably at least be two separate commits. Same PR is fine.

I will split up the commits.

- Moved all loader handle maps to within the loader context to ensure the
  maps are init and destroyed with library init/destroy vs at start of
atexit.

Signed-off-by: Neil R. Spruit <[email protected]>
-Check result of individual driver for zeInit during init_driver().

Signed-off-by: Neil R. Spruit <[email protected]>
@nrspruit nrspruit force-pushed the fix_multi_driver_teardown_init branch from 209af0b to 05b5259 Compare August 20, 2024 19:20
@nrspruit nrspruit marked this pull request as draft August 20, 2024 19:24
@nrspruit nrspruit marked this pull request as ready for review August 20, 2024 19:27
@nrspruit nrspruit marked this pull request as draft August 21, 2024 15:07
@nrspruit nrspruit marked this pull request as ready for review August 21, 2024 16:11
@nrspruit
Copy link
Contributor Author

Disregard my last comment, this should be ready to merge since it is not causing additional issues.

- Fix the fallback case where multiple drivers are found, but only one
  inits such that the ddi tables are reinit to point back to the driver.

Signed-off-by: Neil R. Spruit <[email protected]>
@nrspruit nrspruit force-pushed the fix_multi_driver_teardown_init branch from cfe26f0 to 2d80a32 Compare August 21, 2024 17:11
@nrspruit nrspruit merged commit 3a8e4af into oneapi-src:master Aug 21, 2024
21 checks passed
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.

4 participants