matlabpool不起作用

3 views (last 30 days)
Maytee Cruz
Maytee Cruz 2013年2月11日
回答: Rajani Metri 2020年4月18日
我在尝试使用parfor时有以下错误
>> matlabpool local 2 ???未定义的函数或变量'DistComp.InteractiveClient'。
Error in ==> distcomp.pGetInteractiveObject at 33 conn = distcomp.interactiveclient;
错误in ==> distComp.getInteractiveObject在11 C = DistComp.pgetInteractiveObject('create');
错误in ==> matlabpool在117 client = distComp.getInteractiveObject();
当我在平行部分中击中本地时,我也会得到这个:
???类DistComp.Typechecker没有名为“ GetDefaultValue”的属性或方法。
Error in ==> distcomp.configsection.configsection at 50 obj.PropValue{i} = distcomp.typechecker.getDefaultValue(obj.Types{i});
错误= = > distcomp.configuration.pConstructFromClassTypes at 39 obj.findResource = distcomp.configsection('findResource', props, types, isRW);
错误in ==> distcomp.configuration.pinitializefromname在21 obj.pconstructfromclasstypes(type);
Error in ==> distcomp.configuration.getJavaReference at 15 conf.pInitializeFromName(name);
My code work fine on other computers. I am using a MacBook

答案(2)

Shashank Prasanna
Shashank Prasanna 2013年2月11日
您是否有两个MATLATB的会议,可以在本地打开Matlab池?这是一个问题。
如果这样做,则创建两个具有不同数据归值值的配置,可以独立和同时使用两种配置。要更改“数据分配属性”,请在“ MATLAB文件”菜单中转到:Parallel>“在打开的弹出窗口中管理配置:右键单击您使用的调度程序”并选择属性。在“调度程序”选项卡中,可以将数据分配属性指定为:“存储工作数据的目录(数据分析)”。为两个MATLAB客户端指定不同的位置。
否则,单击并行>验证并在其失败的位置共享结果。

Rajani Metri
Rajani Metri 2020年4月18日
你好,
您可以在MATLAB的新版本中检查替代功能。
Parpool'当地的'
代替
Matlabpool当地的
and
Parpool关闭
代替
Matlabpool关闭
希望这会有所帮助。谢谢你

社区寻宝

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

Start Hunting!