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

  • 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 522
mpiSettings
11-179
Examples
Set deadlock detection for a communicating job inside the jobStartup.m file for that
job:
% Inside jobStartup.m for the communicating job
mpiSettings('DeadlockDetection', 'on');
myLogFname = sprintf('%s_%d.log', tempname, labindex);
mpiSettings('MessageLoggingDestination', 'File', myLogFname);
mpiSettings('MessageLogging', 'on');
Turn off deadlock detection for all subsequent spmd statements that use the same
parallel pool:
spmd; mpiSettings('DeadlockDetection', 'off'); end
More About
Tips
Setting the MessageLoggingDestination does not automatically enable message
logging. A separate call is required to enable message logging.
mpiSettings has to be called on the worker, not the client. That is, it should be called
within the task function, within jobStartup.m, or within taskStartup.m.
Vue de la page 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 655 656

Commentaires sur ces manuels

Pas de commentaire