Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- distributor :-
- int split = 8;
- for (y < IMHT)
- for (x < IMWD)
- c_in :> val;
- if (y < split-1)
- if (x < split-1) send to worker 1
- else if (x < split+1) send to worker 1 and 2
- else send to worker 2
- else if (y < split + 1)
- if (x < split-1) send to worker 1 and 3
- else if (x < split+1) send to worker 1, 2, 3 and 4
- else send to worker 2 and 4
- else
- if (x < split-1) send to worker 3
- else if (x < split+1) send to worker 3 and 4
- else send to worker 4
Add Comment
Please, Sign In to add comment