我使用加載doSMP
包河doSMP不想要開始一些工人
然而,今天,它不工作,我不明白爲什麼...
我已經試過rmSessions(all=TRUE)
好幾次,但問題仍然存在!
儘管如此,getDoParWorkers()
說明我還沒有註冊並行後端...
你有我一個解決方案嗎?
錯誤消息:
> library(doSMP)
Le chargement a nécessité le package : foreach
Le chargement a nécessité le package : iterators
Le chargement a nécessité le package : codetools
foreach: simple, scalable parallel programming from REvolution Computing
Use REvolution R for scalability, fault tolerance and more.
http://www.revolution-computing.com
Le chargement a nécessité le package : revoIPC
> w <- startWorkers(4)
Erreur dans startWorkers(4) : unable to create a task queue: limit exceeded
De plus : Messages d'avis :
1: In startWorkers(4) : there is an existing doSMP session using doSMP1
2: In startWorkers(4) : there is an existing doSMP session using doSMP2
3: In startWorkers(4) : there is an existing doSMP session using doSMP3
4: In startWorkers(4) : there is an existing doSMP session using doSMP4
5: In startWorkers(4) : there is an existing doSMP session using doSMP5
6: In startWorkers(4) : there is an existing doSMP session using doSMP6
7: In startWorkers(4) : there is an existing doSMP session using doSMP7
8: In startWorkers(4) : there is an existing doSMP session using doSMP8
9: In startWorkers(4) :
possible leak of worker sessions: consider using FORCE=TRUE
> getDoParWorkers()
[1] 1
很好的回答。我從來沒有想到DoSMP是惡毒的。 :)它似乎具有在Windows下顯示的行爲,我根本沒有在Linux下使用doMC看到 - 不知道它是doMC還是Windows或我的用法。 – Iterator
@Joris Meys。我會按照你的建議:更新我的R版本。我希望這可以解決問題。謝謝你的回答。 – Marco
@Joris Meys。我剛剛卸載了我的最新版本並重新安裝了新版本,並且它工作正常! :-) – Marco