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

Exposes base OptionsContext class in the API #396

Merged
merged 1 commit into from
Dec 2, 2024
Merged

Conversation

pranavm-nvidia
Copy link
Collaborator

In order to support more than just the StableHloToExecutable pipeline, we need to be able to create different option types from the API. This commit exposes the base OptionsContext class in the Python API and includes a mechanism for child classes to register themselves with the client, allowing them to be created through a common API.

@pranavm-nvidia pranavm-nvidia force-pushed the common-options branch 2 times, most recently from ba839d4 to cd2393b Compare November 20, 2024 19:31
Copy link
Collaborator

@christopherbate christopherbate left a comment

Choose a reason for hiding this comment

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

Overall it looks good. Noted in the comments a couple things that need to be tweaked before merging, but once that's done and it passes CI, then it should be good to merge.

One thing to note is that we currently have the CI building static libs. Since you're introducing static registration mechanisms, you definitely want to check the CMake build with -DBUILD_SHARED_LIBS=ON as well. Let me know if any questions.

@pranavm-nvidia pranavm-nvidia force-pushed the common-options branch 2 times, most recently from 64979d3 to b7ddf31 Compare November 25, 2024 22:56
Copy link
Collaborator

@christopherbate christopherbate left a comment

Choose a reason for hiding this comment

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

LGTM except for some additional minor comments

In order to support more than just the StableHloToExecutable pipeline, we
need to be able to create different option types from the API. This commit
exposes the base `OptionsContext` class in the Python API and includes a mechanism
for child classes to register themselves with the client, allowing them to be
created through a common API.
@pranavm-nvidia pranavm-nvidia merged commit 95636ce into main Dec 2, 2024
2 checks passed
@pranavm-nvidia pranavm-nvidia deleted the common-options branch December 2, 2024 21:10
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