User`s guide
R2012a
7-2
New Programming Interface
This release provides a new programming interface for accessing clusters, jobs, and
tasks.
General Concepts and Phrases
This table maps some of the concepts and phrases from the old interface to the new.
Previous Interface New Interface in R2012a
MathWorks job manager MATLAB job scheduler (MJS)
Third-party or local scheduler Common job scheduler (CJS)
Configuration Profile
Scheduler Cluster
The following code examples compare programming the old and new interfaces, showing
some of the most common commands and properties. Note that most differences involve
creating a cluster object instead of a scheduler object, and some of the property and
method names on the job. After the example are tables listing some details of these new
objects.
Previous Interface New Interface
sched = findResource('scheduler',...
'Configuration','local');
j = createJob(sched,...
'PathDependencies',{'/share/app/'},...
'FileDependencies',{'funa.m','funb.m'};
createTask(j,@myfun,1,{3,4});
submit(j);
waitForState(j);
results = j.getAllOutputArguments;
clust = parcluster('local');
j = createJob(clust,...
'AdditionalPaths',{'/share/app/'}),...
'AttachedFiles,{'funa.m','funb.m'};
createTask(j,@myfun,1,{3,4});
submit(j);
wait(j);
results = j.fetchOutputs;
Objects
These tables compare objects in the previous and new interfaces.
Previous Scheduler Objects New Cluster Objects
ccsscheduler parallel.cluster.HPCServer
genericscheduler parallel.cluster.Generic
jobmanager parallel.cluster.MJS