MATLAB: How can I get details about the functions called inside parfor in a profile summary report

parforprofiler

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

Best Answer

This is rather non-obvious, but you can use mpiprofile, like so:
spmd, mpiprofile('on'); end
parfor
...
end
spmd, mpiprofile('viewer'); end
Related Question