MATLAB PARALLEL COMPUTING TOOLBOX - S Guia do Utilizador Página 523

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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.
Vista de página 522
1 2 ... 518 519 520 521 522 523 524 525 526 527 528 ... 655 656

Comentários a estes Manuais

Sem comentários