Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parallel error message #113

Open
bobverity opened this issue May 5, 2022 · 1 comment
Open

Parallel error message #113

bobverity opened this issue May 5, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@bobverity
Copy link
Collaborator

Hi Bob,

Hope you are well.

I tried to run drjacoby using parallel chains, as indicated in the vignette, but unfortunately I get a strange error message:

Error in checkForRemoteErrors(val) : 2 nodes produced errors; first error: Evaluation error: object 'truncate_threshold' not found.

When I run drjacoby serially, I get no error message - the only difference is in the cluster argument

the objects cores and cl give the following output:> cores [1] 20 > cl socket cluster with 20 nodes on host ‘localhost’

obviously not an urgent problem so whenever you have time to look into it, please don't hesitate to ping me!

Thanks!

@bobverity bobverity added the bug Something isn't working label May 5, 2022
@pwinskill
Copy link
Member

Depending on how the likelihood is set up, sometimes it is necessary to export other user-defined function to have parallel instance when setting up the cluster. I am wondering if that is the case here @bobverity?

For example, one might have:

cl <- parallel::makeCluster(4)
parallel::clusterExport(cl, c("myhelperfunction"))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants