You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was having a play around with this this morning. The standard function seems to work fine, but when I use the cores = .. argument I get an error as below. I've tried with 2, 4, and 8 cores with the same result.
# Programming benchmarks (5 tests):# starting worker pid=10496 on localhost:11728 at 09:56:33.005# starting worker pid=10495 on localhost:11728 at 09:56:33.005# Error in unserialize(node$con) : error reading from connection# Calls: <Anonymous> -> slaveLoop -> makeSOCKmaster# Error in unserialize(node$con) : error reading from connection# Calls: <Anonymous> -> slaveLoop -> makeSOCKmaster# Execution halted# Execution halted# Error in makePSOCKcluster(names = spec, ...) : # Cluster setup failed. 2 of 2 workers failed to connect.
What is really weird, is that when I created a reprex for this issue, it seemed to work...
It's something to do with namespaces and parallel. I think if you explicitly load benchmarkme, you shouldn't get this issue. I'll investigate more when I get a minute
So I'm fairly sure this is caused when you don't call library(benchmarkme) first.
Unfortunately, I'm certain I don't know how to fix it and get the package on CRAN. In the parallel code, I'm calling non-exported functions, so adding a library(benchmarkme) call to clusterExport doesn't work.
I could export all private functions, but I really don't want to.
I've now added a vaguely helpful error message (in the next version). If anyone can think of a fix, feel free to comment.
Hi Colin,
I was having a play around with this this morning. The standard function seems to work fine, but when I use the
cores = ..
argument I get an error as below. I've tried with 2, 4, and 8 cores with the same result.What is really weird, is that when I created a reprex for this issue, it seemed to work...
Created on 2020-11-18 by the reprex package (v0.3.0.9001)
Session info
...but still doesn't work without doing a reprex. I'm guessing a dependency issue? Although I can't figure out what might be missing.
Apologies if this me being stupid... but I can't figure it out.
The text was updated successfully, but these errors were encountered: