Matlab functions are executed locally and not on the cluster
Ältere Kommentare anzeigen
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 Kommentare
Daniel Shub
am 31 Okt. 2012
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
am 31 Okt. 2012
Antworten (1)
Jason Ross
am 31 Okt. 2012
1 Stimme
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
Kategorien
Mehr zu MATLAB Parallel Server finden Sie in Hilfe-Center und File Exchange
Produkte
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!