Closed epkugelmass closed 8 years ago
The -parallel setclusters- command allows an includefile(filename) option where you can pass in a file with preferences. Does that work for you? -parallel- should copy over the ADOPATH (and rescan for mlibs), but it won't copy over all preferences.
Somewhat tangentially, is the problem that any call to Stata in batch-mode on Windows fails to load the profile.do?
Yes, this works for me. The version on ssc does not yet have includefile() @gvegayon: your website appears to be down (tried ssc install from there...failed.)
Yes, it is down, try using the installer from github raw
To answer my own question, Stata in batch mode on windows does appear to normally load the user profile.do.
I'm closing this. I don't think it would be a good idea to have each cluster read profile.do. We should be aiming to replicate in the clusters the environment at the time of the call to parallel
, not the environment at the startup of Stata.
Stata allows the creation of a profile.do that will run every time Stata is initialized. http://www.stata.com/manuals13/gswb.pdf#B.3ExecutingcommandseverytimeStataisstarted
This is useful because it allows users to override system preferences. This is particularly important when the ADOPATH is solely composed of write-restricted system directories. Parallel should include an option for each cluster to call profile.do. When this is not done, Parallel might not be found by the clusters.
For example: