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

Add ability to include a plugin when creating driver #740

Merged
merged 3 commits into from
Jun 17, 2024

Conversation

daveliddell
Copy link
Contributor

@daveliddell daveliddell commented Jun 14, 2024

vmfbRunner now takes an optional extra_plugin argument to load an executable plugin while the driver is getting created.

This option might be used, for example, when loading a vmfb that has an external dependency on a native shared library.

The implementation of this new feature takes advantage of the pre-existing iree.runtime.flags feature and a new IREE python API function. Normally, drivers are managed in a cache. However, setting a flag to specify the plugin has no effect on existing drivers. The API now has a function for creating a driver independent of the cache, to guarantee that any flags are sure to take effect.

This PR also includes a fix for the problem of the CI using old cached wheels for iree, as recommended by @monorimet.

Copy link
Contributor

@monorimet monorimet left a comment

Choose a reason for hiding this comment

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

Nice! Thanks for the push on this. Love that it's just a few lines change on the python side.

@monorimet monorimet merged commit e328124 into nod-ai:main Jun 17, 2024
2 of 3 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