Summary: | Compiling Slurm with PMIX support | ||
---|---|---|---|
Product: | Slurm | Reporter: | Alex Mamach <alex.mamach> |
Component: | PMIx | Assignee: | Felip Moll <felip.moll> |
Status: | RESOLVED INFOGIVEN | QA Contact: | Unassigned Reviewer <reviewers> |
Severity: | 4 - Minor Issue | ||
Priority: | --- | ||
Version: | 20.02.0 | ||
Hardware: | Linux | ||
OS: | Linux | ||
See Also: |
https://bugs.schedmd.com/show_bug.cgi?id=6598 https://bugs.schedmd.com/show_bug.cgi?id=5323 |
||
Site: | Northwestern | Alineos Sites: | --- |
Atos/Eviden Sites: | --- | Confidential Site: | --- |
Coreweave sites: | --- | Cray Sites: | --- |
DS9 clusters: | --- | HPCnow Sites: | --- |
HPE Sites: | --- | IBM Sites: | --- |
NOAA SIte: | --- | NoveTech Sites: | --- |
Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
Recursion Pharma Sites: | --- | SFW Sites: | --- |
SNIC sites: | --- | Linux Distro: | RHEL |
Machine Name: | CLE Version: | ||
Version Fixed: | Target Release: | --- | |
DevPrio: | --- | Emory-Cloud Sites: | --- |
Attachments: | workaround_with_pmix_2002.patch |
Description
Alex Mamach
2020-03-04 15:42:01 MST
From what I see right now, support for rpmbuild with pmix is such that only takes into account the system installed version, and it seems you cannot use another version. The code in the spec file was introduced in bug 6598, commit 35bb9afb. I will do some tests and come back to you with the conclusions. Created attachment 13284 [details] workaround_with_pmix_2002.patch This is a quick workaround that seems to generate the correct config line. I haven't tried to install the rpms nevertheless, I need more time to do so. I am lowering the severity of this bug to sev-4 since this is doesn't have such impact. Please see https://www.schedmd.com/support.php for description of our sev levels. Forgot to add.. compile with: rpmbuild --define "slurm_with_pmix /path/to/your/pmix_v1:/path/pmix_v2" ... and note like the configure line looks like: + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/slurm --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pmix=/path/to/your/pmix_v1:/path/pmix_v2 I analyzed more the issues. I think you are doing it correctly: there's obviously some problem when using the rpmmacros file, but not when using a define in the command line. This works for me: > rpmbuild --define '_with_ucx --with-ucx=/usr/local/ucx-1.7.0' --define > '_with_pmix --with-pmix=/usr/local/pmix-2.2.3:/usr/local/pmix-3.1.5' -tb > slurm-20.02.0.tar.bz2 In what regards to this: > the compilation would have prevented this error. Even stranger, if I then > remove the pmix2 package and install Slurm, srun/sacct/etc are all installed > in /usr/local/pmix-2.2.3/ instead of /usr/bin/. I am wondering if you're using an RPM compiled with something in rpmmacros. Can you remove your rpmmacros and show me the configure line that rpmbuild is showing up? I think you must have a prefix defined somewhere maybe from the time you built pmix-2.2.3. This is my generated file: ]$ rpm -qpl rpmbuild/RPMS/x86_64/slurm-libpmi-20.02.0-1.fc30.x86_64.rpm /usr/lib/.build-id /usr/lib/.build-id/07/a2a7ae193db2cc26e94df57bddb22d9826bc6b /usr/lib/.build-id/24/1a9880a469ad681191c6cc7c9d981a90fa66fd /usr/lib64/libpmi.so /usr/lib64/libpmi.so.0 /usr/lib64/libpmi.so.0.0.0 /usr/lib64/libpmi2.so /usr/lib64/libpmi2.so.0 /usr/lib64/libpmi2.so.0.0.0 This is my configure line shown by rpmbuild: + ./configure --build=x86_64-redhat-linux-gnu --host=x86_64-redhat-linux-gnu --program-prefix= --disable-dependency-tracking --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --sysconfdir=/etc/slurm --datadir=/usr/share --includedir=/usr/include --libdir=/usr/lib64 --libexecdir=/usr/libexec --localstatedir=/var --sharedstatedir=/var/lib --mandir=/usr/share/man --infodir=/usr/share/info --with-pmix=/home/lipi/bin/pmix_v1:/home/lipi/bin/pmix I am obsoleting the attached patch since it is not really needed. Hi, thanks for taking a look at this. After some more testing I can confirm you are correct, sorry for the dumb question and false alarm ;) Hi, thanks for taking a look at this. After some more testing I can confirm you are correct, sorry for the dumb question and false alarm ;) |