Bill Allombert on Tue, 07 May 2019 23:08:55 +0200 |
[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]
Re: Possible to debug parallel execution? |
On Tue, May 07, 2019 at 02:25:38PM -0500, Hans L wrote: > I created a script that is compute-intensive and using parfor. I neglected > to add any sort of progress output and its already been running a while, so > I am wondering if there is a way to see the current variables in a break > loop (breaking with Ctrl-C). > In non-parallel scripts, I have been able to break, and output local loop > variables to see the progress, but it seems these aren't accessible when > the script is threaded? Any ideas? Alas, the GP debugger can only access the variable from the main thread. Otherwise you can use the C debugger. On Linux if your gp pid is $N do gdb /proc/$N/self $N and then thread apply 1 bt thread apply 2 bt etc. Cheers, Bill.