




















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!





















Dept of Computer & Information Sciences University of Delaware Delayed Side-Effects Ease Multi-core Programming
Introduction : The Sieve Concept It is an approach to automatic parallelization employed in Codeplay’s Sieve C++ System low level Parallel Programming.
Introduction : The Sieve Concept
Sieve Concept
Sieve Concept
Sieve Concept : Semantics Equivalent to : void f (int *ap) { const int ar = *ap; int aw = *ap; { //Sieve block entry int b ; ….. = ar; aw = ………..; b = ar; } //Sieve block exit *ap = aw; } int main(){ int a; …. f(&a); }
Sieve Concept : Semantics
Anti-dependence If a read of a free variable is followed by a write to it ( anti-dependence ), delaying the write preserves the dependence.
Output-dependence If a write to a free variable is followed by another write to it ( output dependence ), delaying the writes preserves the dependence if the order of writes is preserved.
Example Consider the example : int main() { int a = 0; sieve { int b = 0; a = a + 1; b = b + 1; print(a, b); // prints 0, a = a + 1; b = b + 1; print(a, b); // prints 0, } print(a); // prints 1 }
Example Continued
Function Call
Importance of the Sieve Construct