我要评分
获取效率
正确性
完整性
易理解

libmpi.so.40 Not Found When Performing Parallel MPI Application Debugging

Symptom

Parallel MPI application debugging fails and the following error is reported:

Failed to launch lldb-server: /root/devkitdemo-devkitdemo-23.0.1/Compiler_and_Debugger/mpi_demo/kunpeng/a5459915/lldb-server: error while loading shared libraries: libmpi.so.40: cannot open shared object file: No such file or directory.

Possible Causes

libmpi.so.40 is not found.

Procedure

Prefer installing Open MPI 4.1.4 or later. For details, see Open MPI Installation Guide.

After the installation is complete, set the environment variable:

export LD_LIBRARY_PATH=/opt/test/openmpi_414/lib:$LD_LIBRARY_PATH

/opt/test/openmpi_414/lib indicates the Open MPI installation path.