Question: I need help with problems 1-5 please We wish to compare the performance of two different computers: M1 and M2. The following measurements have been

 I need help with problems 1-5 please We wish to compare

I need help with problems 1-5 please

We wish to compare the performance of two different computers: M1 and M2. The following measurements have been made on these computers. Which computer is faster on program 1? How much faster is it? Which computer is faster on program 2? How much faster is it? Suppose that M1 in problem 1 costs $500 and M2 costs $800. If you needed to run program 1 a large number of times, which computer would you buy in large quantities? Suppose you wish to run a program P with 7.5 billion instructions on a 5GHz machine with a CPI of 0.8. What is the expected CPU time? When you run P, it takes 3 seconds of wall clock time to complete. What is the percentage of CPU time P received? Consider two different implementations, I1 and I2, of the same instruction set. There are three classes of instructions (A, B, and C) in the instruction set. I1 has a clock rate of 6GHz, and I2 has a clock rate of 3GHz. The average number of cycles for each instruction class on I1 and I2 is given in the following table: The table also contains a summary of average proportion of instruction classes generated by three different compilers. C1 is a compiler produced by the makers of I1, C2 is produced by the makers of I2, and the other compiler is a third-party product. Assume that each compiler uses the same number of instructions for a given program but that the instruction mix is as described in the table. Using C1 on both I1 and I2, how much faster can the makers of claim I1 is compared to I2? Using C2, how much faster can the makers of I2 claim that I2 is compared to I1? Consider program P, which runs on a 1GHz machine Min 10 seconds. An optimization is made to P, replacing all instances of multiplying a value by 4 (mult X, X, 4) with two instructions that set x to x + x twice (add x, x, x; add x, x, x). Call this new optimized program P'. The CPI of a multiply instruction is 4, and the CPI of an add is 1. After recompiling, the program now runs in 9 seconds on machine M. How many multiplies were replaced by the new compiler

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!