gvegayon / parallel

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

`parallel initialize` (from master branch) fails, yielding an error about not finding `default_statapath()` #97

Closed dirtyhawk closed 2 years ago

dirtyhawk commented 2 years ago

Problem description

A fresh installation of parallel from the master branch doesn't seem to work, parallel initialize fails with a Mata error that the function default_statapath() is not found. Maybe there is something wrong with the precompilation of the Mata library?

There's also a posting on Statalist regarding the issue. The workaround is simple: Don't use the latest package from master, but the stable one from stable.

As this only affects the master branch, not stable (or releases), this may or may not be considered (un)desired behaviour. There is no need to resolve this with a very high priority, imho.

Steps to reproduce the problem

clear all
sysdir set PLUS "/tmp/Stata_PLUS" // <-- this is a new/empty/non-existent directory
net install parallel, from("https://raw.github.com/gvegayon/parallel/master/")
mata mata mlib index

parallel initialize 4

Output:

N Child processes: 4
 parallel_setstatapath():  3499  default_statapath() not found
                 <istmt>:     -  function returned error
r(3499);

System information

bquistorff commented 2 years ago

Thanks for reporting that. It should be fixed now in master branch.