Hi
i'm using parfor in one of my loops to speed up the process but Matlab only uses 1 cpu, thus it has the same operating speed as without parfor (and i have 4 cpus). How come ?
thanks
Jeff

 採用された回答

Jean-François
Jean-François 2013 年 10 月 1 日
編集済み: Jean-François 2013 年 10 月 1 日

0 投票

i'm on 2013a
i think it's because i don't have the parallel computing toolbox (yet) right? i thought parfor was working because i hadn't any error messages when using it...
Jeff

1 件のコメント

Sean de Wolski
Sean de Wolski 2013 年 10 月 1 日
parfor will run on a system without PCT. This is so a user can develop parallel code and have it not break when they give it to someone without PCT.

サインインしてコメントする。

その他の回答 (1 件)

Sean de Wolski
Sean de Wolski 2013 年 10 月 1 日

0 投票

What release are you using? If you are using a release before R2013b, did you start a matlabpool?
matlabpool open %open workers for parfor
If you're on R2013b, the parpool should start automatically unless you turn this off in preferences.

カテゴリ

ヘルプ センター および File ExchangeParallel for-Loops (parfor) についてさらに検索

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by