MATLAB PARALLEL COMPUTING TOOLBOX - S Podręcznik Użytkownika Strona 98

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
Przeglądanie stron 97
4 Interactive Parallel Computation with pmode
4-4
4
A variable does not necessarily have the same value on every worker. The labindex
function returns the ID particular to each worker working on this communicating
job. In this example, the variable x exists with a different value in the workspace of
each worker.
P>> x = labindex
5
Return the total number of workers working on the current communicating job with
the numlabs function.
P>> all = numlabs
6
Create a replicated array on all the workers.
P>> segment = [1 2; 3 4; 5 6]
Przeglądanie stron 97
1 2 ... 93 94 95 96 97 98 99 100 101 102 103 ... 655 656

Komentarze do niniejszej Instrukcji

Brak uwag