[petsc-users] ./test1: error while loading shared libraries: libopenblas.so.0: cannot open shared object file: No such file or directory.

Matthew Knepley knepley at gmail.com
Sat Aug 27 08:29:02 CDT 2022


On Sat, Aug 27, 2022 at 7:17 AM wangxq2020--- via petsc-users <
petsc-users at mcs.anl.gov> wrote:

> Hi
>
> Submitting a program fails by srun using slurm. This is my command
> srun -n 8 --partition=test --qos=testqos ./test1 -options_file
> options/test1.opts
> and returns
> ./test1: error while loading shared libraries: libopenblas.so.0: cannot
> open shared object file: No such file or directory.
>
> But when I
> using /gpfs/home/ses/wangxq2020/petsc_projects/petsc-3.17.2/arch-linux-c-debug/bin/mpiexec
> -n 1 ./test1,the program can be running. When I installed the related
> library PETSC of this program, it failed to use the mpich on the
> supercomputer, so I downloaded mpich myself. I think it was srun that
> executed the mpich in /opt or other directories. srun was not using the
> mpich I downloaded, causing the error. How can I make srun run this
> /gpfs/home/ses/wangxq2020/petsc_projects/petsc-3.17.2/arch-linux-c-debug/bin/mpiexec?
>

There may also be a problem with MPI, but this problem is with BLAS. You
built PETSc with OpenBLAS, however it appears that OpenBLAS is only
installed on the node you built PETSc on, not on the compute nodes used by
srun. You can verify this by asking the sysadmin.

  Thanks,

     Matt

-- 
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener

https://www.cse.buffalo.edu/~knepley/ <http://www.cse.buffalo.edu/~knepley/>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20220827/9f16ddc8/attachment.html>


More information about the petsc-users mailing list