필터 지우기
필터 지우기

how can I get details about the functions called inside parfor in a profile summary report?

조회 수: 1 (최근 30일)
Hi
when I run profiler for a code which contains a parfor, the profiler report shows only the total time parfor takes and not the number of times a function or statements inside a parfor are called or the time taken by them. How do I get this information? The function and statements inside parfor are in grey in the report.
Thanks Nadia

채택된 답변

Edric Ellis
Edric Ellis 2016년 6월 22일
This is rather non-obvious, but you can use mpiprofile, like so:
spmd, mpiprofile('on'); end
parfor
...
end
spmd, mpiprofile('viewer'); end
  댓글 수: 2
Nadia A
Nadia A 2016년 6월 23일
Thank You, This gives information about each worker. But now I am not able to get profile for the other functions called outside of parfor. Is it possible to get both the informations(for functions outside parfor and the workers) in one report?
Edric Ellis
Edric Ellis 2016년 6월 23일
Unfortunately it isn't currently possible to view both at the same time. (You can use the programmatic API to both profile and mpiprofile to collect the information simultaneously)

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Parallel for-Loops (parfor)에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by