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

  • 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 495
11 Functions — Alphabetical List
11-152
labindex
Index of this worker
Syntax
id = labindex
Description
id = labindex returns the index of the worker currently executing the function.
labindex is assigned to each worker when a job begins execution, and applies only for
the duration of that job. The value of labindex spans from 1 to n, where n is the number
of workers running the current job, defined by numlabs.
More About
Tips
In an spmd block, because you have access to all workers individually and control what
gets executed on them, each worker has a unique labindex.
However, inside a parfor-loop, labindex always returns a value of 1.
See Also
labSendReceive | numlabs
Vue de la page 495
1 2 ... 491 492 493 494 495 496 497 498 499 500 501 ... 655 656

Commentaires sur ces manuels

Pas de commentaire