Fix several bugs and update v0.5 release notes - #264
Conversation
Summary of ChangesHello @MC952-arch, 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 primarily focuses on updating the project's documentation to reflect the latest v0.5 release features, including new hardware support and performance enhancements. It also addresses several minor bugs related to network resource management and standardizes code formatting and argument parsing within the testing framework. The changes aim to improve clarity, maintainability, and correctness across the codebase. Highlights
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
|
29b0f38 to
613f8ea
Compare
There was a problem hiding this comment.
Code Review
This pull request introduces several bug fixes and updates the release notes for v0.5. The changes include adding AMD support, unifying network backends, and enabling zero-copy RDMA in the release notes. The build and test documentation has been updated accordingly.
My review focuses on the correctness and potential issues in the code. I've found a couple of minor issues in the README.md file, such as a placeholder date and a typo. More importantly, I've identified a potential risk in flagcx/core/net.cc where error checks have been removed, which could lead to silent failures. I've provided suggestions to restore these checks.
Other changes in flagcx/core/flagcx_tuner.cc, flagcx/core/flagcx_tuner.h, flagcx/flagcx.cc, and test/perf/tools.cc are mostly related to code formatting and bug fixes that seem correct and improve the codebase.
| resources->netAdaptor->deregMr(resources->netSendComm, | ||
| resources->mhandles[0]); | ||
| resources->netAdaptor->closeSend(resources->netSendComm); |
There was a problem hiding this comment.
The error checks (FLAGCXCHECK) for deregMr and closeSend have been removed. If these functions can fail, their return values should be checked to avoid silent failures and potential resource leaks or other issues. Please consider restoring the error checks.
FLAGCXCHECK(resources->netAdaptor->deregMr(resources->netSendComm,
resources->mhandles[0]));
FLAGCXCHECK(resources->netAdaptor->closeSend(resources->netSendComm));| resources->netAdaptor->deregMr(resources->netRecvComm, | ||
| resources->mhandles[0]); | ||
| resources->netAdaptor->closeRecv(resources->netRecvComm); | ||
| resources->netAdaptor->closeListen(resources->netListenComm); |
There was a problem hiding this comment.
The error checks (FLAGCXCHECK) for deregMr, closeRecv, and closeListen have been removed. If these functions can fail, their return values should be checked to avoid silent failures and potential resource leaks or other issues. Please consider restoring the error checks.
FLAGCXCHECK(resources->netAdaptor->deregMr(resources->netRecvComm,
resources->mhandles[0]));
FLAGCXCHECK(resources->netAdaptor->closeRecv(resources->netRecvComm));
FLAGCXCHECK(resources->netAdaptor->closeListen(resources->netListenComm));| [<img src="docs/images/flagopen.png">](https://flagopen.baai.ac.cn/) | ||
|
|
||
| ## Latest News | ||
| - **[2025/09]** Released [v0.5](https://github.com/FlagOpen/FlagCX/tree/release/v0.5): |
There was a problem hiding this comment.
The month in the release date for v0.5 is 00, which appears to be a placeholder. Please update it to the correct month.
| - **[2025/09]** Released [v0.5](https://github.com/FlagOpen/FlagCX/tree/release/v0.5): | |
| - **[2025/01]** Released [v0.5](https://github.com/FlagOpen/FlagCX/tree/release/v0.5): |
| ## Latest News | ||
| - **[2025/09]** Released [v0.5](https://github.com/FlagOpen/FlagCX/tree/release/v0.5): | ||
| - Adds AMD support (hipAdaptor and rcclAdaptor). | ||
| - Introduces flagcxNetAdaptor to unify network backends, currently supporting SOCKET, IBRC, UCX and IBUC (experimently). |
There was a problem hiding this comment.
There is a typo in "experimently". It should be "experimentally".
| - Introduces flagcxNetAdaptor to unify network backends, currently supporting SOCKET, IBRC, UCX and IBUC (experimently). | |
| - Introduces flagcxNetAdaptor to unify network backends, currently supporting SOCKET, IBRC, UCX and IBUC (experimentally). |
613f8ea to
0db01e0
Compare
No description provided.