Matlab functions are executed locally and not on the cluster
6 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
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 Commenti
Daniel Shub
il 31 Ott 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.
Risposte (1)
Jason Ross
il 31 Ott 2012
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
0 Commenti
Vedere anche
Categorie
Scopri di più su MATLAB Parallel Server in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!