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

onnxruntime shared lib inside python package #21223

Merged
merged 2 commits into from
Jul 2, 2024

Conversation

baijumeswani
Copy link
Contributor

Reopening an older PR: (#19938)

This pull-request adds the onnxruntime shared lib inside the onnxruntime python package.

This will allow other python packages that depend on the ort c library to avoid having to package the ort c lib inside their python package. With this approach, we can have a shared onnxruntime and onnxruntime providers dll.

yufenglee
yufenglee previously approved these changes Jul 1, 2024
@baijumeswani baijumeswani merged commit 116398c into main Jul 2, 2024
96 of 100 checks passed
@baijumeswani baijumeswani deleted the baijumeswani/ort-shared-lib-in-python-package branch July 2, 2024 22:37
):
# If pyhon bindings are enabled, we embed the shared lib in the python package.
# If training is enabled, we don't embed the shared lib in the python package since training requires
# torch interop.
Copy link
Member

Choose a reason for hiding this comment

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

This change broken our "Windows GPU Reduced Ops CI Pipeline", because previously the "--build_shared_lib" was not specified and C API related tests were not run.
@skottmckay, how should we handle this?

skyline75489 added a commit that referenced this pull request Sep 3, 2024
Fix #21223 on macOS

---------

Co-authored-by: Baiju Meswani <[email protected]>
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.

3 participants