matlabpool not working propertly
2 次查看(过去 30 天)
显示 更早的评论
I have the following erros while trying to use parfor
>> matlabpool local 2 ??? Undefined function or variable 'distcomp.interactiveclient'.
Error in ==> distcomp.pGetInteractiveObject at 33 conn = distcomp.interactiveclient;
Error in ==> distcomp.getInteractiveObject at 11 c = distcomp.pGetInteractiveObject('create');
Error in ==> matlabpool at 117 client = distcomp.getInteractiveObject();
Also I get this when I hit local in my parallel section:
??? The class distcomp.typechecker has no property or method named 'getDefaultValue'.
Error in ==> distcomp.configsection.configsection at 50 obj.PropValue{i} = distcomp.typechecker.getDefaultValue(obj.Types{i});
Error in ==> distcomp.configuration.pConstructFromClassTypes at 39 obj.findResource = distcomp.configsection('findResource', props, types, isRW);
Error in ==> distcomp.configuration.pInitializeFromName at 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
0 个评论
回答(2 个)
Shashank Prasanna
2013-2-11
Do you have two sessions of MATLATB that open matlab pool local? This is pose a problem.
If you do then create two configurations which have different values of the DataLocation, there can be two configurations that can be used independently and concurrently. To change the DataLocation Property, in the MATLAB File menu, go to: Parallel > Manage Configurations In the popup that opens: right-click on the scheduler you are using and select properties. There in the scheduler tab, the DataLocation property can be specified as: “Directory where job data is stored (DataLocation)”. Specify different locations for both MATLAB clients.
Otherwise click parallel > Validate and share the results on where it is failing.
0 个评论
Rajani Metri
2020-4-18
Hello,
You can check the alternative function in new versions of MATLAB i.e.
parpool 'local'
instead of
matlabpool local
and
parpool close
instead of
matlabpool close
Hope this will help. Thank You
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Parallel Computing Fundamentals 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!