MATLAB PARALLEL COMPUTING TOOLBOX - S Betriebsanweisung Seite 592

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 656
  • Inhaltsverzeichnis
  • FEHLERBEHEBUNG
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 591
11 Functions — Alphabetical List
11-248
pload
Load file into parallel session
Syntax
pload(fileroot)
Arguments
fileroot Part of filename common to all saved files being loaded.
Description
pload(fileroot) loads the data from the files named [fileroot
num2str(labindex)] into the workers running a communicating job. The files should
have been created by the psave command. The number of workers should be the same
as the number of files. The files should be accessible to all the workers. Any codistributed
arrays are reconstructed by this function. If fileroot contains an extension, the
character representation of the labindex will be inserted before the extension. Thus,
pload('abc') attempts to load the file abc1.mat on worker 1, abc2.mat on worker 2,
and so on.
Examples
Create three variables — one replicated, one variant, and one codistributed. Then save
the data. (This example works in a communicating job or in pmode, but not in a parfor
or spmd block.)
clear all;
rep = speye(numlabs);
var = magic(labindex);
D = eye(numlabs,codistributor());
psave('threeThings');
Seitenansicht 591
1 2 ... 587 588 589 590 591 592 593 594 595 596 597 ... 655 656

Kommentare zu diesen Handbüchern

Keine Kommentare