Effacer les filtres
Effacer les filtres

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

6 vues (au cours des 30 derniers jours)
emarch
emarch le 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 commentaire
Karun Mathiazhagan
Karun Mathiazhagan le 5 Oct 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.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur MATLAB Parallel Server dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by