Filter löschen
Filter löschen

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

6 Ansichten (letzte 30 Tage)
emarch
emarch am 28 Sep. 2018
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 Kommentar
Karun Mathiazhagan
Karun Mathiazhagan am 5 Okt. 2018
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.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu MATLAB Parallel Server finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by