-
Notifications
You must be signed in to change notification settings - Fork 16
Integrated Branch for FP8 Bindgen #247
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
base: main
Are you sure you want to change the base?
Conversation
This is a sub-issue from #247 . Previously we have prefix removal feature for standalone functions. This PR expands the feature to Struct and Enums. Assuming a prefix named `_prefix_` is to be removed, a struct named `_prefix_Foo` is named `Foo` in python. A enum defined below: ```c++ enum _prefix_Fruit { _prefix_Apple, _prefix_Banana }; ``` will be exported as: ```Python Fruit(IntEnum): Apple = 0 Banana = 1 ``` in python. This is to say that the prefix removal is applicable to both enum name as well as the members. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Configurable prefix removal for enums, structs, and functions so exported Python names omit configured prefixes. * Enum symbol list is now exposed in module exports for easier discovery. * **Refactor** * Centralized prefix-removal and unified Python-facing name handling across binding generation and symbol registration. * Rendering internals now propagate Python-visible names consistently. * **Tests** * Added/updated tests to verify prefix removal and symbol exposure; tests invoke kernels directly and reset renderer/function caches. * **Documentation** * Clarified enum registration docstring. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Michael Wang <[email protected]>
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the ✨ Finishing touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
This is an integrated improvement branch that implements gaps needed for Numba-CUDA FP8 Binding Generation. I'll cherry-pick out the individual features and submit them in separate PRs.