필터 지우기
필터 지우기

Does MATLAB support parallel pipeline computation in one computer?

조회 수: 2 (최근 30일)
Ammar
Ammar 2017년 5월 9일
댓글: Ammar 2017년 5월 9일
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