Build mnnvl_moe_alltoall with logger and stringUtils#2807
Build mnnvl_moe_alltoall with logger and stringUtils#2807tiran wants to merge 1 commit intoflashinfer-ai:mainfrom
Conversation
The `mnnvl_moe_alltoall` module uses `Logger::getLogger` and `fmtstr` symbols. Add dependencies to `logger.cpp` and `stringUtils.cpp` to include the symbols in the shared library. Fixes: flashinfer-ai#2804 Signed-off-by: Christian Heimes <cheimes@redhat.com>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
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 Tip CodeRabbit can use your project's `pylint` configuration to improve the quality of Python code reviews.Add a pylint configuration file to your project to customize how CodeRabbit runs |
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses a build issue for the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Activity
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly adds logger.cpp and stringUtils.cpp as source dependencies to the mnnvl_moe_alltoall JIT module, which should resolve the linking errors for Logger::getLogger and fmtstr symbols. The change is straightforward and necessary. I have one suggestion to improve code maintainability by refactoring the construction of source file paths to reduce repetition.
| jit_env.FLASHINFER_CSRC_DIR | ||
| / "nv_internal" | ||
| / "cpp" | ||
| / "common" | ||
| / "logger.cpp", | ||
| jit_env.FLASHINFER_CSRC_DIR | ||
| / "nv_internal" | ||
| / "cpp" | ||
| / "common" | ||
| / "stringUtils.cpp", |
There was a problem hiding this comment.
These new entries add to the repetition of long path prefixes in this source list. To improve readability and maintainability, consider defining a base path for the common C++ sources and reusing it for all related files.
For example:
common_cpp_base = jit_env.FLASHINFER_CSRC_DIR / "nv_internal" / "cpp" / "common"
sources = [
# ... other sources
common_cpp_base / "envUtils.cpp",
common_cpp_base / "tllmException.cpp",
common_cpp_base / "logger.cpp",
common_cpp_base / "stringUtils.cpp",
]This would make the list of sources cleaner and easier to manage. Since this refactoring would affect lines outside the current diff, it could be addressed in a follow-up.
|
/bot run |
|
[FAILED] Pipeline #46370602: 1/20 passed |
📌 Description
The
mnnvl_moe_alltoallmodule usesLogger::getLoggerandfmtstrsymbols. Add dependencies tologger.cppandstringUtils.cppto include the symbols in the shared library.🔍 Related Issues
#2804
🚀 Pull Request Checklist
Thank you for contributing to FlashInfer! Before we review your pull request, please make sure the following items are complete.
✅ Pre-commit Checks
pre-commitby runningpip install pre-commit(or used your preferred method).pre-commit install.pre-commit run --all-filesand fixed any reported issues.🧪 Tests
unittest, etc.).Reviewer Notes
I have not tested the build locally, yet.
Summary by CodeRabbit