How can i communicate the shared memory with the parallel computing toolbox?
Show older comments
I am new to this shared memory concepts. I am not that much familiar with PCT also. kindly Give answers. two functions named Function send and function answer both are sharing the data between them but the problem is both are executed by opening the files in separate command window.Refer to this link i have obtained the shared memory concepts. https://in.mathworks.com/help/matlab/import_export/share-memory-between-applications.html
So that i thought to communicate both files in parpool.How to communicate between the two mfiles using parallel computing toolbox which is already sharing data between them?
4 Comments
Walter Roberson
on 12 Mar 2018
At any one time in the parallel situation, how many copies of "send" would be running and how many "answer" would be running? Would each "send" need to communicate with exactly one "answer" or would each "send" need to communicate with all the "answer"? Is the current situation that "send" runs and writes to a file and returns and then "answer" runs and reads from the file, and returns and then send runs again and so on, and you just want to change it so that one of each is running at the same time using the parallel routines?
DhanaLakshmiR
on 12 Mar 2018
Walter Roberson
on 12 Mar 2018
You should change
spmd
to
spmd(poolsize)
I am not sure why your first_run flag is there?
DhanaLakshmiR
on 13 Mar 2018
Answers (0)
Categories
Find more on Standard File Formats in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!