Does MATLAB support parallel pipeline computation in one computer?

2 次查看(过去 30 天)
Dear all, Please I have a question:
I am working with parallel toolbox in MATLAB and I have 4 workers (cores) in the CPU of my computer. I used 3 workers to implement 3 functions on my images sequentially, i.e. the first worker receives the image, cleans it, and sends it to the second worker. Then, the second worker receives the image, do segmentation, and send it to the third worker. The third worker classifies and stores the image.
My question is: Can I implement these three functions in parallel pipeline rather than sequential? In other words, the first worker receives the image, do cleaning, send it to the second worker, and receive the next image. At the same time, the second worker receives the image, do segmentation, send it to third worker, and receive the next image. The third worker receives the image, do classifying, save it in the memory, and receive the next image, and so on. In this case there is overlap between workers, i.e. there is no wait from one worker to finish the worker after it.
Please, any idea how to solve this problem?
Kind regards Ammar

回答(1 个)

Jan
Jan 2017-5-9
What about running three complete pipelines in parallel? Then 3 workers perform all steps. This seems to be easy to implement and does not require an inter-worker communication for the prcessed data.
  1 个评论
Ammar
Ammar 2017-5-9
Dear Jan, I would like to thank you for this answer. Yes it is easy as parallel. But I am looking to implement these three functions separately and each function depend on the previous one except the first one and each function send to the next except the last one. Please, do you have any clue in this case? Thanks.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Parallel and Cloud 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by