Using all cores in parallel computing toolbox
1 次查看(过去 30 天)
显示 更早的评论
I want to use all the core present in my pc. I have used matlabpool('open',core number) command at the starting of the program and matlabpool('close') at the end. But it took longer time than single core job. I'm using R2009a version. please help.
0 个评论
采纳的回答
Matt J
2016-4-24
You can open the Task Manager and view how many threads are crunching under the Performance tab. If all available threads show activity, then it could simply be that running in parallel is sub-optimal compared to running serially. This can happen, for example, if the size of the task is small compared to the overhead of setting up parallel workers and communicating data to them.
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!