Matlab functions are executed locally and not on the cluster

Hello, I have a pc A which is my client node, a computer B which is a job master and 4 computers (C, D, E, F) that host 16 workers. Using admincenter, I've configured a parallel cluster which validates correctly on pc A. On A, I launch a computation by writing
matlabpool
myscript
now, only explicit parallel constructs (like parfor) are executed on the cluster. Everything else runs on A, including an A \ b statement wich uses all of the 4 cores available on A (which is a macbook pro). Nothing should be executed on A and everything (even non-parallel statements) should be run executed on the cluster
Computers B,C,D,E and F are linux workstations (ubuntu 12.04). What am I missing?

2 件のコメント

Daniel Shub
Daniel Shub 2012 年 10 月 31 日
I am not 100% sure, but just because something like A\b can use multiple cores/threads, doesn't mean it can use multiple machines/processes.
Patrik Osgnach
Patrik Osgnach 2012 年 10 月 31 日
Makes no sense, Matlab is distributed in its very own nature. But this is beyond the point. I need those statements to be executed on the cluster, not on the client pc

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

回答 (1 件)

Jason Ross
Jason Ross 2012 年 10 月 31 日

1 投票

If you want to have those statements executed on the cluster, you need to use a parallel constructs like batch, smpd, parfor or the job/task interface.
There is an exmaple of A/b on the cluster that uses spmd: http://www.mathworks.com/help/distcomp/examples/benchmarking-a-b.html

カテゴリ

ヘルプ センター および File ExchangeMATLAB Parallel Server についてさらに検索

質問済み:

2012 年 10 月 31 日

Community Treasure Hunt

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

Start Hunting!

Translated by