"srun ls" in the desktop terminal died on
dlopen(/usr/lib64/slurm/mpi_pmix.so): libhwloc.so.15: cannot open
shared object file
MpiDefault is pmix, so even a plain srun loads that plugin. The node
image shipped the plugin without the library it links against, because
install_weak_deps=False - set on the Slurm line to keep singularity-ce
out - dropped hwloc-libs along with it. Naming the two libraries
explicitly keeps both properties.
Nothing to do with the container. The same command fails the same way on
a bare compute node; it only looked container-specific because every
test I had run launched srun from the head, which has the library for
other reasons. A failure that appears only when somebody opens a
terminal on a node is one that testing from the head cannot find.
The build now refuses an image whose pmix plugin has unresolved
libraries, so the next version of this cannot ship quietly.
Verified after rebuilding and rebooting the nodes: libhwloc.so.15
resolves to 15.4.1 on the node and ldd reports nothing missing for
mpi_pmix.so.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>