Question

(Parallel High Performance Computing) Explain the difference between lexically forward and lexically backward and give an...

(Parallel High Performance Computing)

Explain the difference between lexically forward and lexically backward and give an example of each?

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Consider two statements S and S'. They are said to be data dependent if f there is one access each in S and S' to the same data item and at least one of the two accesses is a write. Data dependencies occur when two satement compute data that are used by other statements.

Data dependencies are represented by a data dependence graph. In this graph nodes are statements of the program and directed arcs represents the dependencies between the statements.

These directed arcs are classifeid into forward and backward arcs.

An arc or dependence from S to S' is said to be lexically forward when  S' follows S in the program order.

Example

Consider the following statements

Corresponding dependency graph which is lexically forward is shown below

An arc or dependence from S to S' is said to be lexically backward when S follows S' in the program order.

Add a comment
Know the answer?
Add Answer to:
(Parallel High Performance Computing) Explain the difference between lexically forward and lexically backward and give an...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT