Using MATLAB version 7.14.0.739 (R2012a) and the Parallel Computing Toolkit ver 6.0, I've been unable to run the createTask example code to completion. The code is copied from
with the addition of the first line to open matlabpool, as needed:
if ~matlabpool('size'),matlabpool('open','local');end
c = parcluster();
j = createJob(c);
t = createTask(j, @rand, 1, {10,10});
submit(j);
wait(j);
taskoutput = get(t, 'OutputArguments');
disp(taskoutput{1});
When I run it, the only output is
Starting matlabpool using the 'local' profile ...
The MATLAB windows continue to respond to user input, but the script never finishes nor displays output. The Windows Task Manager shows 5 MATLAB processes running, but only the first one gets CPU time (and only in response to user input) -- the other four get no CPU time.
Any help most appreciated.
Regards.
Greg