Entering edit mode
21 months ago
wangjincheng
•
0
hi, I'm using R package which using multi-cores, but it always show the error below:
In mclapply(argsList, FUN, mc.preschedule = preschedule, mc.set.seed = set.seed, :
scheduled cores 1, 5 did not deliver results, all values of the jobs will be affected
Do you have any suggestions to avoid this error?
You should use
lapply
to test your code works fine before you usemclapply
. If your code has some problemsmclapply
may not report origin error messages, so you can not debug, butlapply
will.My code was:
And the error was:
I am confused about lapply, cause multiple-core was used inside the package
GeneImp
function.... , should I define how to use multi-core additionally?Thanks for your reply!
Please add a reproducible example. It just means an error happened in a subset of the data. Cannot help without details. Debug as suggested with lapply.
I submit several bash scripts into different nodes, output shows error which I mentioned before. But when I run the script one by one, it seems less error occurred.