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
댓글 수: 0
답변 (1개)
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.
참고 항목
카테고리
Help Center 및 File Exchange에서 Parallel and Cloud에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!