(talking to myself) isready seems to block, is that expected? Here is my code https://gist.github.com/IainNZ/9730991
Is there a nonblocking isready or am I barking up the wrong tree? On Sunday, March 23, 2014 6:10:59 PM UTC-4, Iain Dunning wrote: > > Digging more into the "standard library" part of the manual, is this a > matter of using "isready" at the end of my main loop, which I know will be > safe because no one else is going to be looking at that RemoteRef? > > On Sunday, March 23, 2014 5:58:27 PM UTC-4, Iain Dunning wrote: >> >> Hi all, >> >> I've never really used the parallel stuff for a "real" task and I'm >> trying to understand the Julian way of structuring my computation. >> >> Heres the situation: >> >> - I have a "main" loop that is solving a series of problems >> - After solving one of these prolems, I sometimes want to solve an >> expensive subproblem that might improve the solution. >> - I want to solve this subproblem in a separate process, and I don't need >> the answer right away. >> >> Mentally I'm thinking of processor 1 running the main loop, and processor >> 2 working on solving any subproblems I send its way (queueing them up >> perhaps). >> At the end/start of every iteration of the main loop on processor 1 I'd >> "check" processor 2 to see if it has any solutions for me, and collect them >> if it has. >> >> Can someone help me out with how I should be thinking of this? >> >> Cheers, >> Iain >> >> >> >>
