Homework Solution: The same manufacturers introduce new quad core versions of P1 and P2 processors….

    The same manufacturers introduce new quad core versions of P1 and P2 processors. NewP1 runs at 3.4GHz and costs $170. NewP2 runs at 2.6GHz and costs $170. We can use two different compilers for these processors. For a specific benchmark program, compiler A generates 2250 instructions per core with an effective CPI of 1.5 for NewP1 and 625 instructions/core and CPI of 3.2 for NewP2. Compiler B generates 1750 instructions/core with a CPI of 1.8 for NewP1 and 500 instructions/core with a CPI of 5.0 for NewP2.
    Which processor-compiler combination is the best?
    Using the metric Cycles per Second times Cores Used divided by Dollars Squared, which is the best machine?

    Expert Answer

     
    For processor NewP1 and compiler A: For processor NewP1 and compiler A:

    The similar manufacturers bring-in novel quad centre versions of P1 and P2 processors. NovelP1 courses at 3.4GHz and absorbs $170. NovelP2 courses at 2.6GHz and absorbs $170. We can interpretation couple unanalogous compilers control these processors. Control a biased benchmark program, compiler A generates 2250 teachings per centre with an powerful CPI of 1.5 control NovelP1 and 625 teachings/centre and CPI of 3.2 control NovelP2. Compiler B generates 1750 teachings/centre with a CPI of 1.8 control NovelP1 and 500 teachings/centre with a CPI of 5.0 control NovelP2.

    Which processor-compiler co-operation is the best?
    Using the metric Cycles per Second eras Centres Interpretationd separated by Dollars Squared, which is the best deed?

    Expert Repartee

     

    Control processor NovelP1 and compiler A:

    Control processor NovelP1 and compiler A:

    no of teachings/core=2250

    CPI=1.5

    Cycle era=1/3.4*109 = 294.12 ps(pico seconds)

    CPU era=(compute of teachings)*(cycles per teaching)*(cycle era)=2250*1.5*294.12=992.65 ns(nano seconds)

    Control processor NovelP2 and compiler A:

    no of teachings/core=625

    CPI=3.2

    Cycle era=1/2.6*109 = 384.62 ps(pico seconds)

    CPU era=(compute of teachings)*(cycles per teaching)*(cycle era)=625*3.2*384.62=769.23 ns(nano seconds)

    Control processor NovelP1 and compiler B:

    no of teachings/core=1750

    CPI=1.8

    Cycle era=1/3.4*109 = 294.12 ps(pico seconds)

    CPU era=(compute of teachings)*(cycles per teaching)*(cycle era)=1750*1.8*294.12=926.47 ns(nano seconds)

    Control processor NovelP2 and compiler B:

    no of teachings/core=500

    CPI=5.0

    Cycle era=1/2.6*109 = 384.62 ps(pico seconds)

    CPU era=(compute of teachings)*(cycles per teaching)*(cycle era)=500*5.0*384.62=961.53 ns(nano seconds)

    Of full the co-operations Processor NovelP2 and compiler A has moderate CPU era so this co-operation is the best which possess improve deed.

    Using the metric (Cycles/s)*Cores/(Dollars2 )

    NewP1: ((3.4 × 109 ) ∗ 4 )/ 1702 = 4.71 × 105 cycles*centre seconds*dollars2

    NewP2: ((2.6 × 109 ) ∗ 4 )/ 1702 = 3.60 × 105 cycles*centre seconds*dollars2

    Using this metric, NewP1 has the pre-eminent treasure. However, this metric is referable very interpretationful becainterpretation the deed amount(in 1st question) over shows that the NewP2 can course programs faster with the similar compute of centres and absorb. It is referable symbolical of a cheerful computer control its figure.