-
Notifications
You must be signed in to change notification settings - Fork 908
Replace writev by sendmsg #11915
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
Replace writev by sendmsg #11915
Conversation
This allows the TCP BTL to avoid raising SIGPIPE on OSes that do not support SO_NOSIGPIPE. Correctly use the unsigned type of the vpid when using it as a starting position for finding the process rank in a group. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
97d96f3
to
7074e59
Compare
running out of disk space for the rocm build. |
Hey @edgargabriel this came up again. Is there some kind of disk space limit in Github Actions, and we just happen to be running up against it in the RoCM build action for some reason? |
@bosilca @abouteiller Is this worth bringing to v5.0.x? |
It helps deal with SIGPIPE on some odd systems. Worth it ! |
I think it would be beneficial yes |
Why are there changes to I think the change is harmless, but it doesn't seem to be part of "Replace writev by sendmsg". |
Correct, the change in group.h is a performance improvement change that is not related to the sendmsg change. They ended up together because they were discovered in the same debugging session. |
@bosilca @abouteiller Got a Coverity alert about this new code:
|
According to the documentation |
If we use the C99 initialization, wouldn't that initialize all non-specified members to the zero value? E.g.: struct msghdr msg = {
.msg_iov = frag->iov_ptr,
.msg_iovlen = frag->iov_cnt,
}; I realize that you're saying we don't need to care about |
The aggregate initialisation will set the not-explicitly initialised members to their default values (NULL or zero). But this is not really a correctness issue, it is writing code in an unnecessary complicated way to make a code-analysis tool happy. |
Removes complaints from coverity about msg.msg_flags not being set. For more information about this read the discussion on open-mpi#11915. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
PR #11940 removed 5 lines of code -- what's not to love? 😜 |
Removes complaints from coverity about msg.msg_flags not being set. For more information about this read the discussion on open-mpi#11915. Signed-off-by: George Bosilca <bosilca@icl.utk.edu>
This allows the TCP BTL to avoid raising SIGPIPE on OSes that do not support SO_NOSIGPIPE.