Can compiled MATLAB standalone make use of MDCS?

1 回表示 (過去 30 日間)
Michael Teo
Michael Teo 2011 年 3 月 30 日
As above, can a compiled MATLAB standalone application (.exe) coded with parfor loop, make use of MATLAB Distributed Computing Server workers?
If yes, how do i configure the application to do so? Thanks!

採用された回答

Richard Alcock
Richard Alcock 2011 年 3 月 30 日
Since R2008b applications deployed using the MATLAB compiler can access a cluster running MATLAB Distributed Computing Server.
The documentation has information and examples: http://www.mathworks.com/help/toolbox/compiler/f12-999353.html#br2jauc-47, but a quick example might look like this
function my_compiled_app
% Open a matlabpool on the cluster defined
% by the 'my_cluster' configuration
matlabpool('open', 4, 'my_cluster');
% Run a parfor loop on the cluster
parfor i = 1:10
disp(i)
end
% Close the pool
matlabpool('close');
end
Compile the application using mcc
>> mcc -m my_compiled_app
And the run it - this should open a matlabpool on the cluster, and show the parfor running
C:\Work> my_compiled_app.exe
  2 件のコメント
Michael Teo
Michael Teo 2011 年 3 月 30 日
Great!
Andreas Goser
Andreas Goser 2011 年 3 月 30 日
W-O-W

サインインしてコメントする。

その他の回答 (1 件)

Andreas Goser
Andreas Goser 2011 年 3 月 30 日
I know of customers that somehow distribute MATLAB Compiler generated EXEs on their clusters. However, I do not think this can be done using MATLAB Distributed Computing Server. The question is why would somebody who has MATLAB and MDCS available go the detour of first creating an EXE?
  1 件のコメント
Michael Teo
Michael Teo 2011 年 3 月 30 日
The short answer to your question is code protection.
We developed models for clients who has MDCS cluster and the concern tha i have is the processing speed. If we distribute the application in exe to client and if the exe do not use the MDCS workers that the client has, then my company will be penalized.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMATLAB Parallel Server についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by