-
Notifications
You must be signed in to change notification settings - Fork 928
Fix OFI build warnings #13266
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
Fix OFI build warnings #13266
Conversation
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: 30a4c2d: mtl/ofi: Remove special patch for gni provider
b20bf41: btl/ofi: Use internal macros for FI_MR_BASIC and F...
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
1 similar comment
|
Hello! The Git Commit Checker CI bot found a few problems with this PR: 30a4c2d: mtl/ofi: Remove special patch for gni provider
b20bf41: btl/ofi: Use internal macros for FI_MR_BASIC and F...
Please fix these problems and, if necessary, force-push new commits back up to the PR branch. Thanks! |
FI_MR_BASIC (1<<0) and FI_MR_SCALABLE (1<<1) are deprecated since Libfabric 1.5 and the symbols will get removed in future Libfabric 2.x versions. Use the internal mode bits for backward compatibilities without breaking compilation with newer libfabric. Signed-off-by: Shi Jin <[email protected]>
There should not be any Cray XC systems in production now - which is where the GNI provider nominally functioned. Meanwhile FI_MR_BASIC is deprecated since Libfabric 1.5 and will be droppped in future Libfabric 2.x versions. Remove this special handler for gni provider due to unnecessity and build warnings. Signed-off-by: Shi Jin <[email protected]>
30a4c2d to
1c67d90
Compare
| * FI_MR_BASIC (1<<0) and FI_MR_SCALABLE (1<<1) are deprecated | ||
| * since Libfabric 1.5 and the symbols will get removed in | ||
| * future Libfabric 2.x versions. Use the internal mode bits | ||
| * for backward compatibilities without breaking compilation | ||
| * with newer libfabric. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This assumes that a newer libfabric won't be reusing those old values? Otherwise FI_MR_SUPER_NEW_FANCY_MODE with value (1<<0) might be misinterpreted as FI_MR_BASIC in some future compile.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would hope ofi wg would not make that mistake.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, there won't be newer libfabric to use these bits, it's forbidden in the development
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
okay I think in this case we will merge this PR. Thanks for cleaning our code a bit @shijin-aws
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
GNI provider is no longer supported and the vendor systems it worked on are EOL.
This PR fixes the build warnings when compiling Open MPI with Libfabric 2.x, like
Removed the stale code snippet in mtl/ofi after talking with @hppritcha
Use internal macros for FI_MR_BASIC and FI_MR_SCALABLE to keep compabilities with old libfabric
and avoid breaking compilation with newer libfabrics