-
Notifications
You must be signed in to change notification settings - Fork 19
Home
-
Up to my knowledge (@amartinhuertas), at present, the unique way of "debugging"
MPI.jl
parallel programs is "print statement debugging". We have observed that messages printed to stdout usingprintln
by the different Julia REPLs running at different MPI tasks are not atomic, but broken/intermixed stochastically. However, if you doprint("something\n")
you are more likely to get it to print to a single line thanprintln("something")
(Thanks to @symonbyrne for this trick, it is so useful). More serious/definitive solutions are being discussed in this issue ofMPI.jl
. -
Some peoples have used
tmpi
(https://github.com/Azrael3000/tmpi) for running multiple sessions interactively, and we could try using the@mpi_do
macro inMPIClusterManagers
(I have not explored neither of them). If am not wrong, I guess that the first alternative may involve multiplegdb
debuggers running at different terminal windows, and a deep knownledge of the low-level C code generated byJulia
(see https://docs.julialang.org/en/v1/devdocs/debuggingtips/ for more details)