[Q-e-developers] How to debug quantum espresso (MPI version) with idb?

Lorenzo Paulatto lorenzo.paulatto at impmc.upmc.fr
Wed Nov 20 16:55:54 CET 2013


On 11/20/2013 04:50 PM, Paolo Giannozzi wrote:
>
>> So, My question is how to debug parallel quantum espresso package with
>> idb or gdb?
>
> in the same way you debug any other parallel (using mpi) code

My personal favourite is to start the code in parallel as normal and 
afterward attach to one of the processes with the debugger.

$ mpirun -np 8 pw.x ...
...

(open another terminal)
$ ps ux|grep pw.x
paulatto  2238  0.0  0.0  16800  1016 pts/4    R+   16:55   0:00 pw.x
paulatto  2239  0.0  0.0  16800  1016 pts/4    R+   16:55   0:00 pw.x
...


$gdb /path/to/bin/pw.x 2238


good luck


-- 
Dr. Lorenzo Paulatto
IdR @ IMPMC -- CNRS & Université Paris 6
+33 (0)1 44 275 084 / skype: paulatz
http://www-int.impmc.upmc.fr/~paulatto/
23-24/4é16 Boîte courrier 115, 4 place Jussieu 75252 Paris Cédex 05



More information about the developers mailing list