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

possible bug when when using capture or quietly prefix #33

Closed remlapmot closed 8 years ago

remlapmot commented 8 years ago

Dear George, Thanks indeed for this brilliant suite which really does speed up my work. I am coding to get some bootstrapped standard errors for an estimator and I find that when I prefix my "parallel bs" command with either "capture" or "quietly" it fails but if I just run it "noisily" then it completes without error. I have observed this error on Stata 14 on Windows and Unix. I attach an example do-file and it's log-file with the errors (note I have had to give both files an extra .txt extension so GitHub allows me to upload them).

Best wishes Tom Palmer

parallel_example.log.txt parallel_example.do.txt

gvegayon commented 8 years ago

Tom,

The issue here is that, as far as I know, you can't export a program, in your case -logistictsri-, without printing it on screen (see lines here https://github.com/gvegayon/parallel/blob/master/ado/parallel_export_programs.mata#L29-L31). I haven't tried running parallel with other commands that don't require passing a program.

Best,

bquistorff commented 8 years ago

I've added a check & error message when using programs() but c(noisily)==0 in 24c4f94.

gvegayon commented 8 years ago

Great, thanks!

George G. Vega Yon (from mobile) +1 626 381 8171 http://www.its.caltech.edu/~gvegayon On Apr 26, 2016 5:28 PM, "Brian Quistorff" notifications@github.com wrote:

I've added a check & error message when using programs() but c(noisily)==0 in 24c4f94 https://github.com/gvegayon/parallel/commit/24c4f942a222ddcdd30624c2e345c26589619ca0 .

— You are receiving this because you modified the open/close state. Reply to this email directly or view it on GitHub https://github.com/gvegayon/parallel/issues/33#issuecomment-214928651