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 issues with intercept layer and zesInit/zeInit given fallback to passthrough #183

Merged
merged 5 commits into from
Aug 22, 2024

Conversation

nrspruit
Copy link
Contributor

  • Fix for allowing both zesInit and zeInit remove drivers and perform ddi table fallback to passthrough.
  • Added check that ensures only one ze* Init call can change the drivers list and ddi tables.
  • Fixed thread safety of accessing the image/sampler handle maps.
  • Fixed invalid handle translation in zetCommandListAppendMetricQueryEnd

- Enable zesInit to check for usable drivers thru zelLoaderDriverCheck.
- If a driver check was already done, then this call is skipped to avoid
  breaking existing allocated handles.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
- Added lock for usage of image/sampler map for thread safe operation.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
…tion

- Fixed zetCommandListAppendMetricQueryEnd to properly translate
  handles.

Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
@nrspruit nrspruit marked this pull request as ready for review August 22, 2024 20:17
scripts/templates/ldrddi.cpp.mako Outdated Show resolved Hide resolved
source/loader/ze_loader.cpp Outdated Show resolved Hide resolved
source/loader/ze_loader_api.h Outdated Show resolved Hide resolved
scripts/templates/ldrddi.cpp.mako Show resolved Hide resolved
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
Signed-off-by: Neil R. Spruit <neil.r.spruit@intel.com>
@nrspruit nrspruit merged commit cace28e into oneapi-src:master Aug 22, 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.

2 participants