【发布时间】:2015-07-21 08:25:38
【问题描述】:
我有一个可以串行运行的程序,但是当我尝试使用 openMPI 时,我收到了消息
mpirun noticed that the job aborted, but has no info as to the process that caused that situation.
对于串行程序,我通过键入
来运行 valgrindvalgrind --leak-check=yes --tool=memcheck /workspace/MK/cmake/Project/buildagain/bin/Project -PR INPUT/chain.inp`
由于我通过键入./runProj.sh type.txt 并点击链接http://www.open-mpi.org/faq/?category=debugging#memchecker_run 连续运行程序
为了用 valgrind 运行 MPI,我输入了
mpirun -np 4 valgrind /workspace/MK/cmake/Project/buildagain/bin/Project -PR INPUT/chain.inp
但是,输出很短,所以我看不到问题出在哪里
所以我尝试将 gdb 与 MPI 一起使用。我输入了
mpirun -np 2 xterm -e gdb ../cmake/Project/buildagain/bin/Project
我得到以下输出
[Thread debugging using libthread_db enabled]
warning: File "opt/apps/ossw/applications/gcc/gcc-4.7/sl6/lib63/libstdc++.so.6.0.17-gdb.py" auto-loading has been declined by your 'auto-load safe-path' set to ...
To enable execution of this file add ...
line to your configuration file "h1/MK/.gdbinit"
....
当我输入 show auto-load safe-path 时,输出是
List of directories from which it is safe to auto-load files is usr/share/gdb/auto-load:/usr/lib/debug:/usr/bin/mono-gdb.py
当我输入下面的内容时,我会得到与以前相同的输出:
run -PR INP/Chain.inp -iex "set auto-load safe-path /usr/share/gdb/auto-load"
或
run -PR INP/Chain.inp -iex "set auto-load safe-path /opt/apps/ossw/applications/gcc/gcc-4.7/sl6/lib63/libstdc++.so.6.0.17-gdb.py"
有人可以帮忙吗?
【问题讨论】: