{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

hw2_cs433_fa09

# hw2_cs433_fa09 - CS433 Computer Systems Organization Fall...

This preview shows pages 1–3. Sign up to view the full content.

CS433: Computer Systems Organization Fall 2009 Homework 2 Assigned: Sept/15 Due in class Sept/29 Total points: 40 for undergraduate students, 44 for graduate students. Instructions: Please write your name, NetID and an alias on your homework submissions for posting grades (If you don’t want your grades posted, then don’t write an alias). We will use this alias throughout the semester. Homeworks are due in class on the date posted. Problem 1: Data dependence (8 points) Here is an unusual loop. First, list the dependences (output, anti and true) and then rewrite the loop so that it is parallel. for (i = 1; i < 100; i = i + 1) { a[i] = b[i] + c[i]; // S1 b[i] = a[i] + d[i]; //S2 a[i + 1] = a[i] + e[i]; //S3 }

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document