Utilising Multicore on Linux Matlab 7.11 64-bit
古いコメントを表示
I'm unable to get multicore working.
I am running the following in a script:
function partest
X=ones(10000);
for(a=1:100);
X.*X;
end
This is what my System Monitor shows: http://smanohar.com/matlab-multicore.png. As you can see, only one core is being used, despite the operation being element-wise!
I also get:
>> maxNumCompThreads
ans =
6
My system is:
Matlab: 7.11.0.584 R2010b, 64-bit (glnxa64)
OS: 64-bit Ubuntu 10.04, Kernel 2.6.32-29
CPU: Intel Xeon W3580, 6-core each @3.33 GHz
Why isn't it using all 6 CPUs? I thought that element-wise multiplication was parallellised?
Incidentally, Parallel toolbox is also installed. Under Parallel/Configurations Manager/local, when I press Start validation, the System monitor shows all cores are used for "Parallel Job" and "Matlabpool".
採用された回答
その他の回答 (1 件)
Murugavel Sivagnanam
2011 年 3 月 31 日
0 投票
MALTAB by default is a single threaded process. Though you have multicore process, it does not use multiple cores to perform calculations.
Also the functions that you have written does not use any of the features of Parallel Computing Toolbox. Refer to the following documentation for more information on using the parallel computing toolbox.
3 件のコメント
Sanjay Manohar
2011 年 3 月 31 日
Konrad Malkowski
2011 年 4 月 5 日
Hi Sanjay,
Did you open the matlabpool?
Jiro Doke
2011 年 4 月 5 日
Correction on this answer. In R2010b (since R2008a), MATLAB automatically multi-threads certain operations (linear algebra and element-wise computations).
カテゴリ
ヘルプ センター および File Exchange で Introduction to Installation and Licensing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!