A program takes 40 seconds to run on one version of architecture and 20 seconds
ID: 3889690 • Letter: A
Question
A program takes 40 seconds to run on one version of architecture and 20 seconds to run on a new version. What is the overall speedup?
2. What is the arithmetic mean of the values 3, 2, 5, 20, 13?
3. A given program consists of a 200-instrucation loop that is executed 50 times. If it takes 10,000 cycles to execute the program on a given system, what are that system’s CPI and IPC values for the program?
4. What is the IPC of a program that executes 16,000 instructions and requires 8,000 cycles to complete?
5. Benchmarking reveals that 80% of the execution time is spent inside functions that can be executed in parallel. What is the maximum speedup () from a parallel program on four processors?
6. What is the CPI of a program that executes 16,000 instructions and requires 8,000 cycles to complete?
Explanation / Answer
As per Chegg policy, I am answering first 4 questions:
1.) speedup = ETold/ETnew = 40/20 = 2
2.) arithmetic mean = (3+2+5+20+13)/5 = 43/5 = 8.6
3.) no. of instructions = 200*50 = 10000
IPC = no.of instructions/no. of clock cycles = 10000/10000 = 1
CPI = no. of clock cycles/no. of instructions = 10000/10000 = 1
4.) IPC = no.of instructions/no. of clock cycles = 16000/8000 = 2
Hope it helps, feels free to comment in case of any query.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.