parfor problems... Index in position 1 exceeds array bounds.
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commento
Karun Mathiazhagan
il 5 Ott 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.
Risposte (0)
Vedere anche
Categorie
Scopri di più su MATLAB Parallel Server in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!