SPMD is not working

1 visualizzazione (ultimi 30 giorni)
Adriana Kiszka
Adriana Kiszka il 5 Lug 2021
Commentato: Adriana Kiszka il 14 Lug 2021
Hello,
I have a code where I am using spmd block and the code was working on Friday and today not... It looks like it doesn't do function inside.
I tried the following:
spmd
labindex
end
and it works.
My code
forward_val = zeros(rep,1);
spmd
[new_sol,stage_val,A_val] = forwardPassDemand(filename,scenario(:,task_assignment(:,labindex)),sol_start(task_assignment(:,labindex),:),phi,beta);
labindex
end
forward_val(task_assignment,1) = [stage_val{:}]';
where all required variables are defined is not working. I get the following error for the last line:
Brace indexing is not supported for variables of this type.
and nothing is displayed.
Could you please advice me what can be wrong with this code?
Thank you in advance,
Adriana
  3 Commenti
Raymond Norris
Raymond Norris il 5 Lug 2021
Can you share the solution?
Adriana Kiszka
Adriana Kiszka il 14 Lug 2021
This was my mistake, because I have made some changes in spmd functions (i.e. spmd_feval_impl) to speed it up and after restarting computer spmd stopped working. When I came back to primal version, everything was allright.

Accedi per commentare.

Risposte (0)

Categorie

Scopri di più su Loops and Conditional Statements in Help Center e File Exchange

Prodotti


Release

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by