How to debug mpi program with Clion?
Executable is set mpirun, that's why I can not debug as usual, I think, so how to do it? Thanks
答案 0 :(得分:0)
当前版本的CLion不直接支持调试MPI程序。使用mpirun
启动后,您可以做的最好是attach to an individual process。您可能必须延迟进程以给自己足够的时间来附加它们。 OpenMPI描述了a few tricks how to do so。
使用串行调试器调试并行应用程序非常繁琐。从许多具有异常值的过程中搜索一个过程是很多手动工作。通常,您最好使用并行调试器,例如DDT或totalview。
答案 1 :(得分:0)