无法使用“线程”选项启动Parpool

10次​​观看(最近30天)
arwel
arwel 2020年5月19日
你好,
我能够通过像这样的parpool来运行parfor循环.....
Parpool(8)
。。and then things work.
However, according to this part of the documentation.. //www.tatmou.com/help/parallel-computing/choose-between-theen-thread----------------------------------------- and-environments.html#mw_6bbf0761-74c0-74c0-4044e-9db6-9db6-777b6-77b82c7c7c7c138c ....我应该能够打开一个平行的池,该池是通过前进的踩踏的。
pool = parpool(“线程”);
..按照示例。但是,当我尝试这个问题时,我会发现一个错误。
使用Parpool(第113行)错误
“线程”is not the name of a profile. Valid names are:
'当地的'
因此,似乎我需要以某种方式创建“线程”配置文件。我找不到该怎么做。
有人可以向我发布正确的方向吗?基于线程更适合我想做的事情。
(我在Linux上使用R2019A)
干杯,
arwel

答案(1)

史蒂文·洛德(Steven Lord)
According to the Release Notes 此功能是在Release R2020a中引入的。
3条评论
史蒂文·洛德(Steven Lord)
我不知道是否存在基于许可证的线程数量的限制,或者如果有的话,该限制是什么。
显然有一个基于机器的限制,如果您尝试启动更多的线程,那么您的机器能够运行物品可能会放慢...向下...下降。但这将基于您特定的机器的功能。

登录发表评论。

社区寻宝

在Matlab Central中找到宝藏,发现社区如何为您提供帮助!

Start Hunting!