
























Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























2
2
2
2
17 elements divided among 7 processes 17 elements divided among 5 processes 17 elements divided among 3 processes
17 elements divided among 7 processes 17 elements divided among 5 processes 17 elements divided among 3 processes
Assuming no operations for “floor” function Our choice
Block Decomposition Macros #define BLOCK_LOW(id,p,n) ((id)(n)/(p)) #define BLOCK_HIGH(id,p,n)
(BLOCK_LOW((id)+1,p,n)-1) #define BLOCK_SIZE(id,p,n)
(BLOCK_LOW((id)+1,p,n)-BLOCK_LOW(id,p,n)) #define BLOCK_OWNER(index,p,n)
(((p)(index)+1)-1)/(n))**
- L - L - L - L - L Decomposition Affects Implementation