system call with parfor

11 visualizaciones (últimos 30 días)
gianluca
gianluca el 31 de En. de 2013
hi i have a script like this
for i=1:10
parfor n=1:20
system(command(i,n));
end
end
I'd like the first for the first expected the end of all system Call and then continue with the cycle .
  1 comentario
Jan
Jan el 31 de En. de 2013
Does this mean, that you want to wait after the PARFOR loop until all system calls have been finished?

Iniciar sesión para comentar.

Respuestas (1)

Jason Ross
Jason Ross el 31 de En. de 2013
I'm not entirely clear what you mean by "I'd like the first for the first expected the end of all system Call and then continue with the cycle", but parfor does not guarantee that the iterations happen in any order.
If you'd like more control of what happens where, you might want to look at using spmd.

Categorías

Más información sobre Parallel for-Loops (parfor) 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