Unable to view saved mpiprofile stats from compute cluster on local machine
Show older comments
Hi, I am trying to use the Matlab Profiler to analyze my code. I used the "normal" Profiler via
profile on
% Code to be analyzed
profile off
stats = profile("info");
% And then later to view
profview(stats)
I then identified runtime hotspots using the report and optimized the code by parallelizing using a spmd block. Now I want to analyze the code again. The normal Profiler fails on parallel code so I used
mpiprofile on
% Code to be analyzed
mpiprofile off
stats = mpiprofile("info");
% And then later to view
mpiprofile('viewer',stats)
So far, so good. I have access to a large computation cluster and ran everything on there using
c = parcluster;
job = c.batch(@myFcn, 3, {}, 'AutoAddClientPath', false, 'CurrentFolder', '.');
The computation works perfectly. The third output is the stats-struct saved from the mpiprofile. On manual inspection, the struct seems to be correct, as there are 47 fields for each of the used workers, each with a function history etc.
The problem now is, when I type
mpiprofile('viewer',stats)
to view the report in HTML form, nothing is displayed. The mpiprofiler opens showing the interface of the parallel profiler but acts as if I started it to start profiling new code, displaying
MATLAB has started profiling. Run the code or app that you want to profile in MATLAB. Then, click Stop Profiling to display the results.
Does anyone know how to resolve this? I am sure there is a simple solution to this :D
Thanks in advance
Lukas
Accepted Answer
More Answers (0)
Categories
Find more on MATLAB Parallel Server in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!