【发布时间】:2015-03-11 07:24:32
【问题描述】:
以下代码:
matlabpool('open','local',2)
parfor i=1:5
proc = System.Diagnostics.Process;
end
导致错误:
Error: MATLAB cannot determine whether "System" refers to a function or variable.
但是,当我再次执行 parfor 循环时(在错误之后),它运行了!我发现了几个类似的问题,但我无法实施建议的解决方案。
MATLAB parfor - cannot determine whether "ModelUtil" refers to a function or variable?
MATLAB using parfor (parallel computing toolbox) and custom packages with +
我无法理解为什么循环会第二次运行。如果我再打电话
matlabpool close
再次执行整个脚本,错误再次出现。所以它只在池启动后第一次发生。有什么想法吗?
【问题讨论】:
标签: matlab parallel-processing