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 Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

태그

질문:

2013년 10월 1일

댓글:

2013년 10월 1일

Community Treasure Hunt

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

Start Hunting!

Translated by