Is it okay to use matlabpool in multiple matlab sessions?
古いコメントを表示
I'm sharing a server with someone else in my lab. To reduce executive time, I use the matlab parallel toolbox. However, matlab gives me this warning:
Warning: Found 1 pre-existing parallel job(s) created by matlabpool that are running.
This is because another person is also using the matlabpool. Should I ignore this warning? Or should I better use matlabpool when others don't? Need some help here!
4 件のコメント
Matt J
2013 年 1 月 14 日
Are you sure that the job mentioned in the warning is due to the other sesssion? What happens when you execute "matlabpool close" and then try to re-open the pool?
Peng
2013 年 1 月 14 日
Matt J
2013 年 1 月 14 日
Can you ask that person to close his/her matlabpool to test whether the problem goes away?
Peng
2013 年 1 月 14 日
採用された回答
その他の回答 (2 件)
Thomas Ibbotson
2013 年 1 月 14 日
By default matlabpool will try and use all the workers available in a cluster. For example if you have 16 workers in a cluster and open a matlabpool:
>> matlabpool open myClusterProfile
Starting matlabpool ... connected to 16 workers.
Now the entire cluster is busy with your interactive matlabpool session. Someone in another MATLAB session will not be able to use the cluster (including opening their own matlabpool) until you close yours. It is not possible to share a single matlabpool between matlab sessions.
You can however share the cluster, by not using all the available workers, e.g.
>> matlabpool open myClusterProfile 8
Starting matlabpool ... connected to 8 workers.
Now there are still 8 workers available for someone else to use. Either with their own matlabpool or with batch jobs.
HTH, Tom
カテゴリ
ヘルプ センター および File Exchange で Job and Task Creation についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!