





























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!






























Dr. Rodric Rabbah, IBM.^
P^0 Tasks^ ExecutionUnits
P^1 PP 2 3 Processors Partitioning doamesra cscpoihp p^ p^ p^ p^0 10 1 mgei pnsn omtg ser ina p^ p^ p^ p^ ttt^2 32 3 ii oo nn SequentialParallelcomputation Program
Ti ●^ W: set of memory locations written (output) by taskj
Tj ●^ Two tasks^ Tand^ T^1
are parallel if (^2) input to T is not part of output from^ T (^1 2) input to T is not part of output from^ T (^2 1) outputs from Tand T^ do not overlap 1 2
4 Design SpacesSoftware Construction^ ●^ Supporting Structures^ ^ Code and data structuringpatterns^ ●^ Implementation Mechanisms^ ^ Low level mechanisms usedto write parallel programs^ Patterns for ParallelProgramming. Mattson,Sanders, and Massingill(2005).
yes Divide and Conquer no
Recursive Data ●^ Operations on a central data structure^ ^ Arrays and linear data structures^ ^ Recursive data structures
yes no
VEC3D^ acc[NUM_BODIES]^ =^ 0; for^ (i^ =^ 0;^ i^ <^ NUM_BODIES^ -^ 1;^ i++)
for^ (j^ =^ i^ +^ 1;^ j^ <^ NUM_BODIES;^ j++)
//^ Displacement^ vectorVEC3D^ d^ =^ pos[j]^ –^ pos[i];//^ Forcet^ =^1 /^ sqr(length(d));//^ Components^ of^ force^ along^ displacementd^ =^ t^ *****^ (d^ /^ length(d));acc[i]^ +=^ d^ *****^ mass[j];acc[j]^ +=^ -d^ *****^ mass[i];} }
44 33 22 1 61 6 5 75 7 Step 1^ Step 2
Step 3 ●^ Given a forest of rooted directed trees, for eachnode, find the root of the tree containing the node^ ^ Parallel approach: for each node, find its successor’ssuccessor, repeat until no changes–^ O(log n) vs. O(n)