필터 지우기
필터 지우기

Info

이 질문은 마감되었습니다. 편집하거나 답변을 올리려면 질문을 다시 여십시오.

How to fetch results of further code before spmd ends?

조회 수: 1 (최근 30일)
Oindri
Oindri 2018년 7월 10일
마감: Oindri 2018년 7월 13일
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.

답변 (0개)

이 질문은 마감되었습니다.

Community Treasure Hunt

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

Start Hunting!

Translated by