parfor problems... Index in position 1 exceeds array bounds.

6 次查看(过去 30 天)
I get the following error when trying to run this on a MJS cluster (I've pasted the pseudo code below): Index in position 1 exceeds array bounds.
The error occurs on the parfor line itself. If I try and track i it will go to 10 then throw the error.
Everything runs fine when the parfor is switched to a for, and even if it's run with the 'local' cluster. It's just when moving it to a dedicated MJS cluster that this error gets thrown.
load('PIT_CH2_large.mat')
num_po = 100
ppw = 10
x = XThing(PIT_CH2_large(1:num_po,:));
pp = reshape(x, num_po/ppw, ppw);
parfor i = 1:num_po/ppw
for j = 1:ppw
RunSomething(pp(i,j))
end
end
  1 个评论
Karun Mathiazhagan
Karun Mathiazhagan 2018-10-5
Hello Erick,
I tried to reproduce the issue based on the pseudo-code that you provided. It seems to be the case that the issue is not with the information you have provided thus far. Perhaps it is within the functions XThing or RunSomething or in the .mat file.
Could you share the relevant files so that the forum can help narrow down your issue? Additionally, some information on the release of MATLAB, platform and OS used might be helpful.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 MATLAB Parallel Server 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by