Summary: | sys-cluster/openmpi Use of eselect-ldso USE flag does not select correct BLAS/LAPACK version when run with OpenMPI | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | hfk22 <gentoo> |
Component: | Current packages | Assignee: | Gentoo Science Related Packages <sci> |
Status: | UNCONFIRMED --- | ||
Severity: | normal | CC: | cluster, jstein |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 747136 |
Description
hfk22
2020-04-17 04:53:59 UTC
haha, this is amazing... I have no clue what a nice solution would be (or if it even exists), which can satisfy everybody... > Someone else would have to check, but I thought the old > app-eselect/eselect-lapack package did not have the same problem. > If I recall, the old scheme created symbolic links in /usr/lib > to the chosen LAPACK version. The new scheme under eselect-ldso > changes the dynamic library search order rather than modifying a > symbolic link. That, or my memory is incorrect. So the problems with this approach: (1) you cannot use Intel MKL as a provider anymore. (2) All the BLAS/LAPACK providers have non-trivial patches to create extra libblas.so, etc libraries. These patches need to keep being refreshed every release, and these are not validated by upstreams. There is no way to check if the patches are correct or not (except by doing testing by running some package which depends uses BLAS/LAPACK like numpy or something). I do not have enough experience with MPI yet, but prefixing with /usr/lib and /usr/lib64 seems a bit pointless. Maybe there are deeper underlying reasons, so I am willing to be enlightened. :D > Now, this can be fixed on the command line by giving mpirun the --noprefix > flag. I'll contend this is not really a desirable solution as it > requires the user to know about this problem. Agreed. Is there any degradation if we ask upstream to make this the default behavior? Maybe if we ask nicely... Not sure about what to do. PS: Curious what happens with sci-libs/scalapack... Curious how debian does this. Anyone knows? |