MATLAB PARALLEL COMPUTING TOOLBOX - S Guide de l'utilisateur Page 574

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 656
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 573
11 Functions — Alphabetical List
11-230
parfevalOnAll
Execute function asynchronously on all workers in parallel pool
Syntax
F = parfevalOnAll(p,fcn,numout,in1,in2,...)
F = parfevalOnAll(fcn,numout,in1,in2,...)
Description
F = parfevalOnAll(p,fcn,numout,in1,in2,...) requests the asynchronous
execution of the function fcn on all workers in the parallel pool p, expecting numout
output arguments from each worker and supplying input arguments in1,in2,... to
each worker. F is a parallel.FevalOnAllFuture object, from which you can obtain the
results when all workers have completed executing fcn.
F = parfevalOnAll(fcn,numout,in1,in2,...) requests asynchronous execution
on all workers in the current parallel pool. If no pool exists, it starts a new parallel pool,
unless your parallel preferences disable automatic creation of pools.
Examples
Close all Simulink models on all workers.
p = gcp(); % Get the current parallel pool
f = parfevalOnAll(p,@bdclose,0,'all');
% No output arguments, but you might want to wait for completion
wait(f);
See Also
fetchOutputs | wait | cancel | fetchNext | parfeval | parpool
Vue de la page 573
1 2 ... 569 570 571 572 573 574 575 576 577 578 579 ... 655 656

Commentaires sur ces manuels

Pas de commentaire