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 a runtime HAL executable loader for static objects #4679

Closed
benvanik opened this issue Feb 1, 2021 · 0 comments · Fixed by #5480
Closed

Add a runtime HAL executable loader for static objects #4679

benvanik opened this issue Feb 1, 2021 · 0 comments · Fixed by #5480
Assignees
Labels
hal/cpu Runtime Host/CPU-based HAL backend performance ⚡ Performance/optimization related work across the compiler and runtime

Comments

@benvanik
Copy link
Collaborator

benvanik commented Feb 1, 2021

After #3580 lands and we are generating the iree_hal_executable_library_t interface we can add support for producing static objects (or maybe archives?) as part of the LLVM AOT path. These objects would contain an exported library symbol that can be included in builds by users and the VM-side would embed the same identifier for runtime lookup via a iree/hal/local/loaders/static_library_loader.c interface.

@benvanik benvanik added hal/cpu Runtime Host/CPU-based HAL backend performance ⚡ Performance/optimization related work across the compiler and runtime labels Feb 1, 2021
@benvanik benvanik self-assigned this Feb 1, 2021
@KoolJBlack KoolJBlack self-assigned this Apr 16, 2021
benvanik added a commit that referenced this issue Apr 16, 2021
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.

Fixes #4679.
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 performance ⚡ Performance/optimization related work across the compiler and runtime
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants