Effacer les filtres
Effacer les filtres

Info

Cette question est clôturée. Rouvrir pour modifier ou répondre.

How to fetch results of further code before spmd ends?

1 vue (au cours des 30 derniers jours)
Oindri
Oindri le 10 Juil 2018
Clôturé : Oindri le 13 Juil 2018
Thread to execute another algorithm within main function body was generated (to check, I put a print statement in algo loop). However, console prints the output in sequential manner. Is it possible in Matlab to fetch output of code part which got executed quickly on worker 2 before the longer print on worker 1.
To rephrase my question, if this is my code
1stfunction(input)
parpool(1)
spmd
out_array = 2nd_func(input)
end print statement
further code ...
end
Is it possible to fetch outputs of further code part on console before out_array gets printed completely, which takes longer duration than further code part.

Réponses (0)

Cette question est clôturée.

Community Treasure Hunt

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

Start Hunting!

Translated by