setupForParallelExecution - Set options for submitting parallel jobs to scheduler

Syntax

setupForParallelExecution(sched, 'pc')
setupForParallelExecution(sched, 'pcNoDelegate')
setupForParallelExecution(sched, 'unix')

Arguments

sched

Platform LSF, PBS Pro, or TORQUE scheduler object.

'pc', 'pcNoDelegate', 'unix'

Setting for parallel execution.

Description

setupForParallelExecution(sched, 'pc') sets up the scheduler to expect workers running on Microsoft Windows operating systems, and selects the wrapper script which expects to be able to call "mpiexec -delegate" on the workers. Note that you still need to supply SubmitArguments that ensure that the LSF or PBS Pro scheduler runs your job only on PC-based workers. For example, for LSF, including '-R type==NTX86' in your SubmitArguments causes the scheduler to select only workers on 32-bit Windows operating systems.

setupForParallelExecution(sched, 'pcNoDelegate') is similar to the 'pc' mode, except that the wrapper script does not attempt to call "mpiexec -delegate", and so assumes that you have installed some other means of achieving authentication without passwords.

setupForParallelExecution(sched, 'unix') sets up the scheduler to expect workers running on UNIX operating systems, and selects the default wrapper script for UNIX-based workers. You still need to supply SubmitArguments to ensure that the LSF, PBS Pro, or TORQUE scheduler runs your job only on UNIX-based workers. For example, for LSF, including '-R type==LINUX64' in your SubmitArguments causes the scheduler to select only 64-bit Linux-based workers.

This function sets the values for the properties ParallelSubmissionWrapperScript and ClusterOsType.

Examples

From any client, set up the scheduler to run parallel jobs only on Windows-based (PC) workers.

lsf_sched = findResource('scheduler', 'Type', 'lsf');
setupForParallelExecution(lsf_sched, 'pc');
set(lsf_sched, 'SubmitArguments', '-R type==NTX86');

From any client, set up the scheduler to run parallel jobs only on UNIX-based workers.

lsf_sched = findResource('scheduler', 'Type', 'lsf');
setupForParallelExecution(lsf_sched, 'unix');
set(lsf_sched, 'SubmitArguments', '-R type==LINUX64');

See Also

createParallelJob, findResource

  


 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS