Matte parallel processing using a network computer

I am familiar with using matlabpool and parfor , but I still need to speed up the calculation.

I have a more powerful computer on my 1 GB network. Both computers have R2010b and have the same code and paths.

What is the easiest way to use both computers for parallel computing?

Sample code that I use today:

--- main.m ---

 matlabpool('open', 3); % ... x = randn(1e5,1); y = nan(size(x)); parfor k = 1 : length(x) y(k) = myfunc(x(k)); end 

--- myfunc.m ---

 function y = myfunc(x) y = x; % some computation return 
+6
source share
1 answer

For real cluster computing, you will need a distributed computing platform , as you can read on the parallel computing page :

Without changing the code, you can run the same application on a computer cluster or grid computing service (using MATLAB Distributed Computing Server ™). You can run parallel applications interactively or in batch mode.

But installing (= buying) tools just to add one computer to a work pool can be too expensive. Fortunately, there are alternatives: http://www.mathworks.com/matlabcentral/fileexchange/13775

I personally have not used this, but I think it is definitely worth a look.

+3
source

Source: https://habr.com/ru/post/921694/


All Articles