Guest User

Untitled

a guest
May 16th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. distributor :-
  2. int split = 8;
  3. for (y < IMHT)
  4. for (x < IMWD)
  5. c_in :> val;
  6. if (y < split-1)
  7. if (x < split-1) send to worker 1
  8. else if (x < split+1) send to worker 1 and 2
  9. else send to worker 2
  10. else if (y < split + 1)
  11. if (x < split-1) send to worker 1 and 3
  12. else if (x < split+1) send to worker 1, 2, 3 and 4
  13. else send to worker 2 and 4
  14. else
  15. if (x < split-1) send to worker 3
  16. else if (x < split+1) send to worker 3 and 4
  17. else send to worker 4
Add Comment
Please, Sign In to add comment