parfor doesn't work in compiled program

조회 수: 2 (최근 30일)
grega
grega 2018년 4월 8일
댓글: Kojiro Saito 2018년 4월 26일
I'm studying how to compile a code and eventually noticed that parfor loop in the compiled program doesn't work (Matlab R2016b). After doing some research also this suggestion by STAFF failed.
Perhaps the reason may be that I use parfor within the timer execution code as follows:
handles.tim = timer('ExecutionMode','FixedRate','Period', 1);
handles.tim.TimerFcn = {@timer_execution, handles };
start(handles.tim);
I also tried putting parpool() right before the parfor loop as suggested by some posts where it work for them - but not for me.
Thank you for any suggestions!
  댓글 수: 1
Kojiro Saito
Kojiro Saito 2018년 4월 26일
What error did you get in compiled application?

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel Computing Fundamentals에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by