Borrar filtros
Borrar filtros

Does MATLAB support parallel pipeline computation in one computer?

5 visualizaciones (últimos 30 días)
Ammar
Ammar el 9 de Mayo de 2017
Comentada: Ammar el 9 de Mayo de 2017
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

Respuestas (1)

Jan
Jan el 9 de Mayo de 2017
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 comentario
Ammar
Ammar el 9 de Mayo de 2017
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.

Iniciar sesión para comentar.

Categorías

Más información sobre Programming en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by