Skip to content

add support for extension functions #12

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

Open
bashbaug opened this issue Aug 17, 2020 · 0 comments
Open

add support for extension functions #12

bashbaug opened this issue Aug 17, 2020 · 0 comments

Comments

@bashbaug
Copy link
Owner

I think we can add support for extension functions as well as core API functions in the OpenCL Runtime Loader.

Suggest that extensions be added with at least two levels of support:

  1. Single-platform support only: When a context is successfully created for a platform, query the extension functions for the platform as well. Anytime an extension function gets called, it will call the function for this platform.

  2. Multi-platform support: Query extension functions for all platforms and call the correct extension function based on the parameters to the extension function. This will require a lookup for each extension function call.

Each level of support may be added independently. Single-platform support will be easier and is sufficient for many use-cases.

The extension functions should be automatically generated from the cl.xml grammar.

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

No branches or pull requests

1 participant