gvegayon / parallel

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

Connection error with MacOS X 10.12 and Stata 15 #69

Open sarahhaj opened 6 years ago

sarahhaj commented 6 years ago

Hi,

I am trying to use the -parallel- command on MacOS X 10.12 and Stata/IC 15.1 and run into some connection issues. I tried to replicate the minimal example with the -egen- command which gives me the following output:

. ssc install parallel, replace
checking parallel consistency and verifying not already installed...
all files already exist and are up to date.

. mata mata mlib index
.mlib libraries to be searched are now
    lmatabase;lmataado;lmataerm;lmatafc;lmatagsem;lmatamcmc;lmatamixlog;lmataopt;lmatapath;lmatapostest;lmatapss;lmat
> asem;lmatasp;lmatasvy;lmatatab;lparallel

. 
. parallel setclusters 2, f
N Clusters: 2
Stata dir:  /Applications/Stata/Stata.app/Contents/MacOS/Stata

. 
. sysuse auto
(1978 Automobile Data)

. 
. parallel, by(foreign): egen maxp = max(price)
--------------------------------------------------------------------------------
Parallel Computing with Stata (by GVY)
Clusters   : 2
pll_id     : guk2xjp312
Running at : /Users/Sarah/Documents
Randtype   : datetime
Waiting for the clusters to finish...
cluster 0001 has finished with a connection error -601- (timeout) (see more)...
cluster 0002 has finished with a connection error -601- (timeout) (see more)...

Can someone tell me what's wrong with it?

I am rather new to Stata and to parallel processing and would greatly appreciate any suggestions. Thanks, Sarah

bquistorff commented 6 years ago

Can you check that you:

sarahhaj commented 6 years ago

Thank you! I noticed that I had not the newest release (the ado file was from version 1.15.8.19).

I installed the newest version from the project website and now I get the following error message:

. parallel setclusters 4
  parallel_setclusters():  3001  expected 1 to 2 arguments but received 3
                 <istmt>:     -  function returned error
bquistorff commented 6 years ago

It looks like you didn't uninstall the SSC version. Can you uninstall parallel and then install the latest from GitHub.