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 backwards compatibility usage of Get*ProcAddrTable #231

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

lisanna-dettwyler
Copy link
Contributor

Make the results of certain Get*ProcAddrTable calls in ze_libddi.cpp ignored as not all drivers will implement these functions. These functions populate different sections of DDI tables in the lib component.

Fixes #196
Relates to VLCLJ-2339

@lisanna-dettwyler
Copy link
Contributor Author

This will support drivers implementing only spec 1.0 functions

@nrspruit
Copy link
Contributor

nrspruit commented Nov 6, 2024

@lisanna-dettwyler ,

Can you do the same in the zesDdiTableInit and zetDdiTableInit because the error will occur there too.

@rwmcguir
Copy link
Contributor

rwmcguir commented Nov 7, 2024

Just double checking, this isn't something that needs added to the Mako scripts?

Make the results of certain Get*ProcAddrTable calls in ze_libddi.cpp
ignored as not all drivers will implement these functions. These
functions populate different sections of DDI tables in the lib
component.

Fixes oneapi-src#196
Relates to VLCLJ-2339

Signed-off-by: Lisanna Dettwyler <[email protected]>
Copy link
Contributor

@nrspruit nrspruit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@nrspruit
Copy link
Contributor

nrspruit commented Nov 9, 2024

Just double checking, this isn't something that needs added to the Mako scripts?

Yes, I just realized, this will need to be changed here such that the code gen will create this:
https://github.com/oneapi-src/level-zero/blob/master/scripts/templates/libddi.cpp.mako

@nrspruit nrspruit self-requested a review November 14, 2024 21:15
@nrspruit nrspruit merged commit 1413421 into oneapi-src:master Nov 14, 2024
26 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.

Driver not initialized: ZE_RESULT_ERROR_UNINITIALIZED
3 participants