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

Feature - Link libtorch libraries at runtime #920

Open
rahulchaphalkar opened this issue Dec 26, 2024 · 0 comments
Open

Feature - Link libtorch libraries at runtime #920

rahulchaphalkar opened this issue Dec 26, 2024 · 0 comments

Comments

@rahulchaphalkar
Copy link

Currently, the 2 ways to link libtorch*.so files is static or dynamic. For dynamic, libtorch needs to be installed on the system where tch-rs is being built. I am exploring a feature where libtorch*.so would not need to be present while tch-rs is built, and only the target system where tch-rs is being run needs to have those libraries installed.
This would make projects (like wasmtime) which depend on tch-rs be able to build without libtorch being installed. The actual linking/mapping of symbols would happen at runtime.
This is similar to what openvino-rs does in runtime linking, although the way to do it would differ here since the bindings are generated in 2 levels, as mentioned in this issue.
Let me know if this feature would be useful, and any feedback. Thanks.

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