Skip to content

Adding a static library loader. - #5480

Merged
benvanik merged 1 commit into
mainfrom
benvanik-static-loader
Apr 16, 2021
Merged

benvanik merged 1 commit into
mainfrom
benvanik-static-loader

Conversation

@benvanik

Copy link
Copy Markdown
Collaborator

This allows applications to inject a set of static libraries that can be resolved at runtime by name. This only includes the runtime portion: there's nothing in the compiler actually generating static libraries yet.

Future improvements to the driver API as part of #4298 will make it easier to inject these loaders. For now an application would need to duplicate this code (touching internals they should not) in order to supply the loader:
https://github.com/google/iree/blob/6ef847398348eb967063f019de73fb6d0e40f9eb/iree/hal/dylib/registration/driver_module.cc#L80

Fixes #4679.

@benvanik benvanik added the hal/cpu Runtime Host/CPU-based HAL backend label Apr 16, 2021
@google-cla google-cla Bot added the cla: yes label Apr 16, 2021
This allows applications to inject a set of static libraries that can be
resolved at runtime by name.
@benvanik
benvanik force-pushed the benvanik-static-loader branch from 3528dcd to c706cfc Compare April 16, 2021 18:50
@benvanik
benvanik merged commit 20ce42b into main Apr 16, 2021
@benvanik
benvanik deleted the benvanik-static-loader branch April 16, 2021 20:15
@rsuderman rsuderman mentioned this pull request Apr 17, 2021

@KoolJBlack KoolJBlack left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Awesome, thanks for doing this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

hal/cpu Runtime Host/CPU-based HAL backend

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add a runtime HAL executable loader for static objects

3 participants