How to make fast computation through parfor in Parallel Computing Toolbox!!!
古いコメントを表示
Hello,
I am very new about parallel computing toolbox. I just wanted to know that how can i increase speed of our program by using Parfor in MATLAB R2009a. My CPU is Intel Core 2 Duo T 6400 2.00 Ghz. I just write following two programs one is sequential and another is parallel but found that sequential program is taking lesser time than the parallel one.
Sequential Program--
tic
a = fun1();
b = fun2();
toc
Parallel Program--
funList = {fun1(),fun2()};
matlabpool open local 2
tic
parfor i=1:length(funList)
funList{i};
outList{i}=funList{i};
end
for i = 1:2
outList{i}
end
toc
matlabpool close
fun1() and fun2() are two simple function to find sum of 1st 100000 numbers and sum of square of that numbers..
Plzz help me!!!
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Parallel for-Loops (parfor) についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!