-
Notifications
You must be signed in to change notification settings - Fork 286
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
mpl: Use CPU affinity functions with standard names #5789
Conversation
Thanks for your patch! Could you please sign and return the contributor's agreement to [email protected]? https://www.mpich.org/documentation/contributor-docs/ |
I will, but it'll take a few more days. |
8dfa867
to
4b11cca
Compare
I signed and submitted the CLA (I don't know how long it takes to be processed) and rebased this PR on |
The functions with leading underscores are internally used in some systems, but the user-facing ones are without underscores: https://linux.die.net/man/3/cpu_set. The underscore-prefixed names are not available on Musl systems, leading to a linking error: ``` [01:19:03] libtool: link: cc -fvisibility=hidden -DNDEBUG -DNVALGRIND -O3 -o src/env/.libs/mpichversion src/env/mpichversion.o lib/.libs/libmpi.so -lpthread -lm -Wl,-rpath -Wl,/workspace/destdir/lib [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to `__CPU_ISSET_S' [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to `__CPU_SET_S' [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to `__CPU_ZERO_S' [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to collect2: error: ld returned 1 exit status [01:19:03] `__CPU_ISSET_S' [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to `__CPU_SET_S' [01:19:03] /opt/x86_64-linux-musl/bin/../lib/gcc/x86_64-linux-musl/8.1.0/../../../../x86_64-linux-musl/bin/ld: lib/.libs/libmpi.so: undefined reference to `__CPU_ZERO_S' [01:19:03] collect2: error: ld returned 1 exit status [01:19:03] make[2]: *** [Makefile:14129: src/env/mpichversion] Error 1 [01:19:03] make[2]: *** Waiting for unfinished jobs.... [01:19:03] make[2]: *** [Makefile:14135: src/env/mpivars] Error 1 ```
4b11cca
to
099bb98
Compare
Bump 🙂 CLA seems to have been accepted |
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.
Thanks for the reminder!
I don't know why the warnings checker didn't report a status. I'll run a sanity check just in case. |
Pull Request Description
The functions with leading underscores are internally used in some systems, but
the user-facing ones are without underscores:
https://linux.die.net/man/3/cpu_set. The underscore-prefixed names are not
available on Musl systems, leading to a linking error:
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.