Code covered by the BSD License
24 Oct 2013
11 Dec 2013)
Spread batch work over multiple MATLAB instances
Watch this File
If you have a for loop which can be written as:
for a = 1:size(input, 2)
output(:,a) = func(input(:,a), global_data);
where both input and output are numeric types, then batch_job() can split the work across multiple MATLAB instances on the same PC, as follows:
output = batch_job(func, input, 4, global_data);
This is a replacement for parfor in this use case, if you don't have the Parallel Computing Toolbox.
Multicore Parallel Processing On Multiple Cores inspired this file.
This file inspired Distributed Batch Job.
I would add to the command that invokes Matlab the option "-nosplash", and maybe also "-nodisplay".
Please add an example in the comment section.
Add example. Improve code.
Add the logo