How to use mpiprofile outside of pmode?

1 回表示 (過去 30 日間)
Sandor Toth
Sandor Toth 2012 年 11 月 5 日
I am trying to profile a parallel function outside of pmode, using the following commands:
pJob = createParallelJob();
createTask(pJob,@par_func,1,{linspace(0,1,32),8});
set(pJob,'MinimumNumberOfWorkers',8);
set(pJob,'MaximumNumberOfWorkers',8);
submit(pJob);
waitForState(pJob);
getAllOutputArguments(pJob)
where par_func has a single output:
function pInfo = par_func()
spmd
mpiprofile on;
% My code here
pInfo = mpiprofile('info');
end
However the getAllOutputArguments returns empty cell. I am very new using parallel processing toolbox, so it should be a simple mistake. :)
Thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeParallel Computing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by