gvegayon / parallel

PARALLEL: Stata module for parallel computing
https://rawgit.com/gvegayon/parallel/master/ado/parallel.html
MIT License
117 stars 26 forks source link

Create help files for debugging ('How to debug') #15

Closed gvegayon closed 8 years ago

gvegayon commented 9 years ago

These could be sthlp files with common FAQs about what to do when things go wrong (basically when there's a problem in some of the clusters' code or when Stata shuts down).

This will be mainly a guide for novice experts on how to: (1) Track errors on Stata using parallel; (2) Kill processes in the different OSs. The second part, as Brian suggested, can be aided providing a command to list Stata processes that are currently running and that may have something to do with parallel. In linux can be something like

ps -aux | grep -regexp '__pll[a-z0-9]+_do'

Read that into stata, parse it using regexp and then return the processes names/pids and a link to run the command in bash 'kill 00000'.

bquistorff commented 8 years ago

Is this still needed as the parent Stata now tracks child processes and kills them when the user breaks in the parent process?

gvegayon commented 8 years ago

I guess only the part on how to debug code using "parallel printlog" and "viewlog". Or are we been to nice :P?

bquistorff commented 8 years ago

OK. I'll make sure we mention this is mentioned in the help file.

gvegayon commented 8 years ago

Great! Thanks

George G. Vega Yon +1 (626) 381 8171 http://www.its.caltech.edu/~gvegayon/

On Fri, Sep 30, 2016 at 10:52 AM, Brian Quistorff notifications@github.com wrote:

Closed #15 https://github.com/gvegayon/parallel/issues/15.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/gvegayon/parallel/issues/15#event-808806003, or mute the thread https://github.com/notifications/unsubscribe-auth/AA2is-fcWOXn75LDpLhtmBYlbFMlk190ks5qvUxCgaJpZM4Fbh5e .