-
Notifications
You must be signed in to change notification settings - Fork 279
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
ch4/ofi: Include NIC information in error messages #7224
base: main
Are you sure you want to change the base?
Conversation
test:mpich/ch4/ofi |
The MPIR error checking macros already add __LINE__ and __func__ information when an error is reported. __SHORT_FILE__ is not necessary since we have the function name, which any decent editor can find automatically.
On systems with multiple NICs, it could be helpful to know which NIC an error was detected on in case there are hardware issues that need investigating. Add NIC information to error checking macros. For now, we report the default NIC used by each process. TODO: extend to support multi-nic usage and take the device number as input for more fine-grained reporting.
test:mpich/ch4/ofi |
@@ -38,6 +38,9 @@ ATTRIBUTE((unused)); | |||
|
|||
#define MPIDI_OFI_WIN(win) ((win)->dev.netmod.ofi) | |||
|
|||
#define MPIDI_OFI_NIC_NAME(nic) (MPIDI_OFI_global.prov_use[nic]->domain_attr->name) | |||
#define MPIDI_OFI_DEFAULT_NIC_NAME (MPIDI_OFI_NIC_NAME(0)) |
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 worry that in the case we are using non-default nic, then we will be providing misleading information.
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'll add a patch to use explicit info.
Pull Request Description
On systems with multiple NICs, it could be helpful to know which NIC an
error was detected on in case there are hardware issues that need
investigating. Add NIC information to error checking macros. For now, we
report the default NIC used by each process. TODO: extend to support
multi-nic usage and take the device number as input for more
fine-grained reporting.
Author Checklist
Particularly focus on why, not what. Reference background, issues, test failures, xfail entries, etc.
Commits are self-contained and do not do two things at once.
Commit message is of the form:
module: short description
Commit message explains what's in the commit.
Whitespace checker. Warnings test. Additional tests via comments.
For non-Argonne authors, check contribution agreement.
If necessary, request an explicit comment from your companies PR approval manager.