How to use event listners for notifications sent from parfeval functions?

5 ビュー (過去 30 日間)
Neil Caithness
Neil Caithness 2015 年 6 月 8 日
コメント済み: Walter Roberson 2015 年 6 月 10 日
Is it possible to trigger a notify event from a parfeval function with a listner in the calling client? So far my experiments with this have failed (but without telling me about any errors.)

採用された回答

Edric Ellis
Edric Ellis 2015 年 6 月 9 日
There currently isn't any support for events from parfeval futures. What sort of event support were you hoping for? Just a completion event?
For now, your best bet is call fetchNext in a loop, possibly with a timeout - although of course this doesn't give you the full flexibility that an event would.
  3 件のコメント
Edric Ellis
Edric Ellis 2015 年 6 月 10 日
Thanks for the information. You can pass object methods to parfeval, but that probably will not help you because the object handles on the workers are not connected back to the object handle at the client.
Walter Roberson
Walter Roberson 2015 年 6 月 10 日
Neil, perhaps it would make more sense to use spmd and labSend() the data from the streams to the master lab that is coordinating everything.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAsynchronous Parallel Programming についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by