Experiences with Distributed and Parallel MATLAB on a...
Transcript of Experiences with Distributed and Parallel MATLAB on a...
![Page 1: Experiences with Distributed and Parallel MATLAB on a ...apt.cs.manchester.ac.uk/people/dgoodman/papers/SIAM... · Experiences with Distributed and Parallel MATLAB on a Microsoft](https://reader036.fdocuments.net/reader036/viewer/2022071009/5fc6a924c1668b7e800f4062/html5/thumbnails/1.jpg)
Experiences with Distributed and Parallel MATLAB on a Microsoft CCS cluster
projective_reconstruction_core
jm = findResource('scheduler','configuration', 'CCS')
job = createJob(jm);
for z_block_start=1:30createTask(job, @projective_reconstruction_core, 1, {imodfile_in, numtlts, xsize, ysize, plane_coeffs2, blocksize, z_inc, homography_3D, z_block_start});
end
f = calculateFiles('projective_reconstruction_core.m’);set(job, 'FileDependencies', f)
LabSend LabReceive labindex.
sched = findResource('scheduler', 'configuration', 'CCS');
pjob = createParallelJob(sched);
set(pjob, 'MaximumNumberOfWorkers', 30)set(pjob, 'MinimumNumberOfWorkers', 15)
f = calculateFiles('projective_reconstruction');set(pjob, 'FileDependencies', f)
task = createTask(pjob, @projective_reconstruction, 0, {basename});
submit(pjob)
waitForState(pjob)
•
•
•••
• • •
•
•Lack of multi-threading for tasks with heterogeneous execution times wastes resources.
set(job, 'FileDependencies', f)
submit(job)
waitForState(job, 'finished')
blocks = getAllOutputArguments(job);
• • • • • • • •
•
•
•
•
•
•
• •
• •
Daniel Goodman, Stef Salvini & Anne Trefethen
© 1984-2008 The MathWorks Inc.