Closed martintoreilly closed 7 years ago
Error message on Appveyor Windows-based CI platform is 'mc.cores' > 1 is not supported on Windows
. Therefore we will try the following everywhere that uses mcmapply
(currently only gdd_for_all_graphs
).
.Platform$OS.type
(returns "unix"
for unix-like systems, including Mac OSX.mc.cores = 1
Tested in commit 4414a9c.
Build passed on Appveyor so closing issue. Opening issue #53 to look into supporting more than one thread on Windows in future. README updated in commit 316e4da.
Additional fix in commit c20c729. net_emds_for_all_graphs
function also calls mcmapply
but had no tests, so wasn't picked up by Appveyor CI build.
Build passed on Appveyor so re-closing issue.
Description
The
mcmapply
function we use for parallel processing on a single machine relies on system level forking, which is only supported by unix-like systems. This means it will work on Linux and OSX, but not Windows. On Windows, callingmcmapply
with mc.cores > 1 throws an error.