Compilers can have a profound impact on the performance of an application on given a processor. This problem will explore the impact compilers have on.

Slides:



Advertisements
Similar presentations
CDA 3101 Discussion Section 08 Performance
Advertisements

CMSC 611: Advanced Computer Architecture Performance Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
CDA 3101 Fall 2010 Discussion Section 08 CPU Performance
Computer Organization Lab 1 Soufiane berouel. Formulas to Remember CPU Time = CPU Clock Cycles x Clock Cycle Time CPU Clock Cycles = Instruction Count.
Performance of Cache Memory
CS1104: Computer Organisation School of Computing National University of Singapore.
Understanding Performance Metrics of Processors Bina Ramamurthy Chapter 1.
Performance Evaluation of Architectures Vittorio Zaccaria.
TU/e Processor Design 5Z032 1 Processor Design 5Z032 The role of Performance Henk Corporaal Eindhoven University of Technology 2009.
100 Performance ENGR 3410 – Computer Architecture Mark L. Chang Fall 2006.
Computer Organization and Architecture 18 th March, 2008.
CSCE 212 Chapter 4: Assessing and Understanding Performance Instructor: Jason D. Bakos.
Cache Organization and Performance Evaluation Vittorio Zaccaria.
CSCE 212 Quiz 4 – 2/16/11 *Assume computes take 1 clock cycle, loads and stores take 10 cycles and branches take 4 cycles and that they are running on.
Performance D. A. Patterson and J. L. Hennessey, Computer Organization & Design: The Hardware Software Interface, Morgan Kauffman, second edition 1998.
Computer Architecture Lecture 2 Instruction Set Principles.
Amdahl's Law.
Lecture 3: Computer Performance
Lecture 24: CPU Design Today’s topic –Multi-Cycle ALU –Introduction to Pipelining 1.
CMSC 611: Advanced Computer Architecture Performance Some material adapted from Mohamed Younis, UMBC CMSC 611 Spr 2003 course slides Some material adapted.
Operation Frequency No. of Clock cycles ALU ops % 1 Loads 25% 2
CDA 3101 Fall 2013 Introduction to Computer Organization Computer Performance 28 August 2013.
10/19/2015Erkay Savas1 Performance Computer Architecture – CS401 Erkay Savas Sabanci University.
Performance David Monismith Jan. 16, 2015 Based on notes from Dr. Bill Siever and from the Patterson and Hennessy Text.
1 CS/EE 362 Hardware Fundamentals Lecture 9 (Chapter 2: Hennessy and Patterson) Winter Quarter 1998 Chris Myers.
Performance.
Compiled by Maria Ramila Jimenez
CDA 3101 Discussion Section 09 CPU Performance. Question 1 Suppose you wish to run a program P with 7.5 * 10 9 instructions on a 5GHz machine with a CPI.
Computer Organization and Architecture Tutorial 1 Kenneth Lee.
1. 2 Table 4.1 Key characteristics of six passenger aircraft: all figures are approximate; some relate to a specific model/configuration of the aircraft.
Computer Performance Computer Engineering Department.
Ch4a- 2 EE/CS/CPE Computer Organization  Seattle Pacific University Performance What differences do we see in performance? Almost all computers.
CPU Performance using Different Parameters CS 250: Andrei D. Coronel, MS,CEH,PhD Cand.
Performance Enhancement. Performance Enhancement Calculations: Amdahl's Law The performance enhancement possible due to a given design improvement is.
CS /02 Semester II Help Session IIA Performance Measures Colin Tan S
TEST 1 – Tuesday March 3 Lectures 1 - 8, Ch 1,2 HW Due Feb 24 –1.4.1 p.60 –1.4.4 p.60 –1.4.6 p.60 –1.5.2 p –1.5.4 p.61 –1.5.5 p.61.
Performance – Last Lecture Bottom line performance measure is time Performance A = 1/Execution Time A Comparing Performance N = Performance A / Performance.
EGRE 426 Computer Organization and Design Chapter 4.
Computer Engineering Rabie A. Ramadan Lecture 2. Table of Contents 2 Architecture Development and Styles Performance Measures Amdahl’s Law.
Performance Computer Organization II 1 Computer Science Dept Va Tech January 2009 © McQuain & Ribbens Defining Performance Which airplane has.
COMPUTER ARCHITECTURE & OPERATIONS I Instructor: Yaohang Li.
Performance 9 ways to fool the public #1 – Reporting Results.
BITS Pilani, Pilani Campus Today’s Agenda Role of Performance.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and from the Patterson and Hennessy Text.
Additional Examples CSE420/598, Fall 2008.
Performance. Moore's Law Moore's Law Related Curves.
Computer Architecture & Operations I
September 2 Performance Read 3.1 through 3.4 for Tuesday
Exercise – Given information in the following table:
Defining Performance Which airplane has the best performance?
Computer Architecture & Operations I
Lecture: Pipelining Basics
CSCE 212 Chapter 4: Assessing and Understanding Performance
CS2100 Computer Organisation
Defining Performance Section /14/2018 9:52 PM.
Set-Associative Cache
CMSC 611: Advanced Computer Architecture
September 24 Test 1 review More programming
Solutions Chapter 1.
COMS 361 Computer Organization
Morgan Kaufmann Publishers Computer Performance
Performance Cycle time of a computer CPU speed speed = 1 / cycle time
1.4.2 [5] <1.4> What is the global CPI for each implementation?
CMSC 611: Advanced Computer Architecture
Performance Lecture notes from MKP, H. H. Lee and S. Yalamanchili.
Performance.
Lecture: Pipelining Basics
Computer Organization and Design Chapter 4
CS2100 Computer Organisation
Presentation transcript:

Compilers can have a profound impact on the performance of an application on given a processor. This problem will explore the impact compilers have on execution time. Compiler A Compiler B No. Instructions Execution Time No. Instructions Execution Time 1.6.1 [5] <1.4> For the same program, two different compilers are used. The table above shows the execution time of the two different compiled programs. Find the average CPI for each program given that the processor has a clock cycle time of 1 ns. 1.6.2 [5] <1.4> Assume the average CPIs found in 1.6.1, but that the compiled programs run on two different processors. If the execution times on the two processors are the same, how much faster is the clock of the processor running compiler A’s code versus the clock of the processor running compiler B’s code? 1.6.3 [5] <1.4> A new compiler is developed that uses only 600 million instructions and has an average CPI of 1.1. What is the speedup of using this new compiler versus using Compiler A or B on the original processor of 1.6.1? Compiler A Compiler B No. Instructions Execution Time a. 1.00E+09 1.8 s 1.20E+09 b. 1.1 s 1.5 s

Solution 1.6.1 From: CPI = (CPU-Time) x Clock Rate/IC Therefore: Compiler A: CPIA = 1.8s x 1.0GHz/1.00E+09 = 1.8 Cycle per Instr. Compiler B: CPIB = 1.8s x 1.0GHz/1.20E+09 = 1.5 Cycle per Instr. Return

Clock RateA/Clock RateB = ((1.00+E9) x 1.8)/((1.20E+09) x 1.2) = 1 Solution 1.6.2 From: CPI = (CPU-Time) x Clock Rate/IC  Clock RateA/Clock RateB = (ICA x CPIA)/(ICB x CPIB) Therefore: Clock RateA/Clock RateB = ((1.00+E9) x 1.8)/((1.20E+09) x 1.2) = 1 Return

Solution 1.6.3 From: (CPU-Time) = IC x CPI x Clock Cycle Time  Therefore: CPU-Timnew = (6.00E+08) x 1.1 x 1.00E-09 = 0.66 s Speed up = Tnew/TA = 0.66s/1.8s = 0.36666….. The same way, we have: Speed up = Tnew/TB = 0.66s/1.8s = 0.366666… Return