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

[Frontend][ArgParse] Pass default values to target compiler(#13264) #17014

Merged
merged 4 commits into from
Jun 26, 2024

Conversation

MNGanesan
Copy link
Contributor

@MNGanesan MNGanesan commented May 21, 2024

In BYOC, Marvell Compiler Config node defines the target compiler's command line options, along with default values. When the user has not given any explicit command line options, these default values can be extracted from the configuration and passed to the TVM's Argument Parser. Currently the support for extraction of default values from Config options is not there, this change introduces that support. Also this is done conditionally by interpreting the flag status of target compiler.

)

    BYOC Compiler's Config node defines the target compiler's
    command line options, along with default values. This change
    extract the default values from config node, while constructing
    target options for codegen/target compiler.
    Added test case for this feature as well.

Signed-off-by: M N Ganesan <[email protected]>
Copy link
Contributor Author

@MNGanesan MNGanesan left a comment

Choose a reason for hiding this comment

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

@lhutton1 @alexeyr @ezyang

Please review the change I've proposed in this PR for providing default option value for backend compiler. I see some test failures which are not relevant to my change.
Appreciate your suggestions

M N Ganesan added 3 commits June 10, 2024 17:27
)

    BYOC Compiler's Config node defines the target compiler's
    command line options, along with default values. This change
    extract the default values from config node, while constructing
    target options for codegen/target compiler.
    Added test case for this feature as well.

Signed-off-by: M N Ganesan <[email protected]>
Signed-off-by: M N Ganesan <[email protected]>
@MNGanesan
Copy link
Contributor Author

@ezyang @yongsun @alexeyr @schell

Please review my PR, it passes Jenkin's run.

Thanks

@MNGanesan
Copy link
Contributor Author

@Mousius @grant-arm

Could you please review this change ?

@MNGanesan
Copy link
Contributor Author

#17014

@schell
Copy link
Contributor

schell commented Jun 14, 2024

Sorry @MNGanesan - I'm not a maintainer of TVM.

@MNGanesan
Copy link
Contributor Author

MNGanesan commented Jun 14, 2024

@lhutton1 @Mousius @Hzfengsy @vinx13

Could you please review this change, This is fix for defect #13264

Thanks

@Hzfengsy Hzfengsy merged commit 02fe0c5 into apache:main Jun 26, 2024
21 checks passed
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