How can I disable my PARFOR loops in my MATLAB code such that I can step inside the PARFOR loops when debugging?

조회 수: 4 (최근 30일)
I have MATLAB code that contains a lot of PARFOR loops. I know it is not possible to step inside the PARFOR loops while debugging as they are executing separately.
However, when I close my matlabpool and wish to debug my code inside the PARFOR, I have to manually change the loops to FOR to be able to step inside them, even though without matlabpool the code runs serially.
Can MATLAB be smart to realize when the code is running serially and allow me to step inside PARFOR loops?

답변 (1개)

Murugavel Sivagnanam
Murugavel Sivagnanam 2011년 1월 11일
The ability to step inside PARFOR blocks even when MATLABPOOL is closed is not available in the Parallel Computing Toolbox in MATLAB 7.9 (R2009b).
There are no known workarounds.
  댓글 수: 1
Gauss
Gauss 2015년 11월 11일
I would also like this feature. When there is no pool open, it should be possible to debug the parfor section without changing it to for. (Often forget to change back to parfor, before submitting it to a cluster later..)
Functions called from a parfor can actually be debugged with no pool open..

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

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by