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

3 visualizaciones (últimos 30 días)
emarch
emarch el 28 de Sept. de 2018
Comentada: Karun Mathiazhagan el 5 de Oct. de 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 comentario
Karun Mathiazhagan
Karun Mathiazhagan el 5 de Oct. de 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.

Iniciar sesión para comentar.

Respuestas (0)

Categorías

Más información sobre MATLAB Parallel Server en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by