
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!

CS 6241 : Project Phase II
Total points : 100
Due : Friday, April 24th , 11:59 pm 2009
Important Policies:
Problem : Our goal in this phase is to build array subscript based data dependence analysis in LLVM to detect parallelism in loops. In particular, our goal will be to build array data dependence analysis in LLVM using two data dependence tests : GCD Test and Banerjee Test. First you will set up the dependence system using the LLVM IR (you can tap into LLVm IR at a suitable level – even high level IR is fine). Try to leverage interprocedural constant propagation and induction variable analysis built into LLVM. The more you leverage such an analysis the more accurate the analysis will be; for example, unknown loop bounds can be problematic but constant propagation helps. Then you will build the dependence solver based on the GCD and Banerjee test and determine if the loop is parallel or not. Using OpenMP pragmas you will prototype some loops found to be parallel and show the speed-up on a dual core platform.
Hint and assumptions : The GCD and Banerjee test are well described in Allen and Kennedy’s book. We will be dealing with rectangular loops only in this project – the loop bounds can be unknown and array subscripts are linear with compile time constant coefficients. The OpenMP details can be found at : http://www.openmp.org/mp-documents/spec30.pdf