1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
OverLord2011 [107]
3 years ago
7

Assume your computer is able to complete 4 double floating-point operations per cycle when operands are in registers and it take

s an additional delay of 100 cycles to access any operands that are not in registers. The clock frequency of your computer is 2 Ghz.

Business
1 answer:
svp [43]3 years ago
8 0

Answer:

<em>For 1st algorithm</em><em>: The total run time is 200.25 s, while that of total waste time is 200 sec and the percentage of the waste time is 99.8%.</em>

<em>For 2nd algorithm:</em><em>The total run time is 100.35 s, while that of total waste time is 100.1 sec and the percentage of the waste time is 99.75%.</em>

Explanation:

As the complete question is not visible, therefore, the question is searched online and following reference question is obtained.

Following data is given as

Floating point operation time=T/4

Memory Access Time =100T

Frequency =2 GHz

Number of Cycles=1000

<u>1st Algorithm</u>

<em>/*dgemm0: simple ijk version triple loop</em>

<em>algorithm*/</em>

<em>for (i=0; i<n; i++)</em>

<em>for (j=0; j<n; j++)</em>

<em>for (k=0; k<n; k++)</em>

<em>c[i*n+j] += a[i*n+k] * b[k*n+j];</em>

First by rewriting the operation inside the inner loop:

= + ×

Now first A, B and C are loaded into the registers so

Load \,Time=3 \times Memory \,Access \,Time=3 \times 100\, T =300\, T

For 2 floating point computations (addition and multiplication)

Computation\, Time=2 \times Floating\, Time\\Computation\, Time=2 \times \frac{T}{4}\\Computation\, Time=\frac{T}{2}

Finally, to store and repeat the cycle as N^3 times the time is estimated as

Store \,Time=Memory\, Access\, Time=100T

Total Run time is given as

T_{run}=N^3 \times [T_{load}+T_{comp}+T_{store}]\\T_{run}=1000^3 \times [300T+\frac{T}{2}+100T]\\T_{run}=1000^3 \times [400.5T]\\T_{run}=200.25 s

Total Wasted time is given as

T_{waste}=N^3 \times [T_{load}+T_{store}]\\T_{waste}=1000^3 \times [300T+100T]\\T_{waste}=1000^3 \times [400T]\\T_{waste}=200 s

Percentage of Waste time is given as

\%age \, waste=\frac{T_{waste}}{T_{run}}\times 100\\\%age \, waste=\frac{200}{200.25}\times 100\\\%age \, waste=99.8\%

<em>The total run time is 200.25 s, while that of total waste time is 200 sec and the percentage of the waste time is 99.8%.</em>

<u>2nd Algorithm</u>

<em>/*dgemm1: simple ijk version triple loop</em>

<em>algorithm with register reuse*/</em>

<em>for (i=0; i<n; i++)</em>

<em>for (j=0; j<n; j++) {</em>

<em>register double r = c[i*n+j];</em>

<em>for (k=0; k<n; k++)</em>

<em>r += a[i*n+k] * b[k*n+j];</em>

<em>c[i*n+j] = r;</em>

<em>}</em>

Initialize register r with the content of C for N2 Times as given as Initialization\,Time=N^2 \times Memory \,Access \,Time=N^3 \times 100\, T

Time for Loading Operands A and B into registers for N3 Times is given as

Load \,Time=N^3 \times 2 \times Memory \,Access \,Time=N^3\times 2 \times 100\, T =N^3\times 200\, T

For 2 floating point computations (addition and multiplication)

Computation\, Time=N^3 \times\frac{T}{2}

Final Memory update to store result in the register r to the memory for N2 Times

Store \,Time=Memory\, Access\, Time=N^2 \times 100T

Total Run time is given as

T_{run}=N^3 \times [T_{load}+T_{comp}]+N^2 \times [T_{linit}+T_{store}]\\T_{run}=1000^3 \times [200T+\frac{T}{2}]+1000^2 \times [100T+100T]\\T_{run}=1000^3 \times [200.5T]+1000^2 \times [200T]\\T_{run}=100.35 s

Total Wasted time is given as

T_{waste}=N^3 \times [T_{load}]+N^2 \times [T_{init}+T_{store}]\\T_{waste}=1000^3 \times [200]+1000^2 \times [100T+100T]\\T_{waste}=1000^3 \times [200T]+1000^2 \times [200T]\\T_{waste}=100.1 s

Percentage of Waste time is given as

\%age \, waste=\frac{T_{waste}}{T_{run}}\times 100\\\%age \, waste=\frac{100.1}{100.35}\times 100\\\%age \, waste=99.75\%

<em>The total run time is 100.35 s, while that of total waste time is 100.1 sec and the percentage of the waste time is 99.75%.</em>

You might be interested in
Lorenzo manages a grocery store in a country experiencing a high rate of inflation. He is paid in cash twice per month. On payda
Leya [2.2K]

Answer:

This is an example of shoe-leather costs of inflation.

Explanation:

In this case, local currency looses its value so quickly that <u>Lorenzo is doing a great efford to mantain the value of his work.</u> Then we can refer to shoe-leather cost of inflation, which is related to cost of time and effort that Lorenzo spend trying to avoid the lost of purchaising power.

5 0
3 years ago
Managers who need strong technical skills and are responsible for assigning specific jobs to workers and evaluating their daily
adell [148]
<span>supervisory The supervisor is a first level management job. This individual is responsible for a small group of people, usually doing the same job or very similar jobs. Typically the supervisor has significant experience doing the work of the individuals they supervise. The supervisor usually handles work assignments, timekeeping and problem-solving.</span>
8 0
3 years ago
By Nike changing the technology in their shoe, they are taking on a role of being more socially responsible. What type of busine
Arisa [49]

Explanation:

In this case, Nike is incorporating corporate governance into its business model, which is defined as a model for managing companies using the best market practices, using transparency, equity and social and environmental responsibility as essential parameters.

Companies today are no longer perceived by society as merely profitable entities, it is a social demand that companies assist in the development of society and minimize their impacts on the environment.

When companies develop programs to support society and sustainability, it guarantees the advantages of being better positioned in the market, attracting more investors, adding more value to its products and services and gaining a strategic and competitive advantage in the market.

5 0
3 years ago
True or false. The first word of your answer has to be either true or false.
Lynna [10]

Answer:

sorry I didn't understand your question and thx for points have a nice day :)

5 0
3 years ago
When the president of Smithson Corp. proposed a new product for launch, his board of directors readily accepted his proposition
natita [175]

If the board of directors readily accepted his proposition without considering the risks. This is an example of  groupthink.

<h3>What is groupthink?</h3>

Groupthink occur when a group of people tend to all accept a conclusion or an opinion that was made without considering whether the viewpoint they accepted was risky or good.

Based on the given scenario the board of directors  accepting the new product that was independently proposed by the president without considering the risks is an example of groupthink.

Inconclusion If the board of directors readily accepted his proposition without considering the risks. This is an example of  groupthink.

Learn more about groupthink here:brainly.com/question/10206116

6 0
2 years ago
Other questions:
  • Mr. Etemadi has prepared the following list of statements about service companies and merchandisers. Identify each statement as
    14·1 answer
  • For 2019, Ashley has gross income of $38,350 and a $5,000 long-term capital loss. She claims the standard deduction of $18,350 a
    11·1 answer
  • Purchasing a product or service from an outside contractor that had been previously provided internally is called A. outsourcing
    12·2 answers
  • The main section of the marketing plan most likely presents a detailed ________ analysis of the current marketing situation.
    7·1 answer
  • An investor who has a margin account with his brokerage firm buys 100 shares of Quick Flip Inc. Later that day, the investor sel
    13·1 answer
  • ECONOMICS
    9·1 answer
  • Where would you go to set up margins on a letter?
    10·2 answers
  • Taveras Corporation is currently operating at 50% of its available manufacturing capacity. It uses a job-order costing system wi
    7·1 answer
  • Which of these can lower the amount of monthly payments on a mortgage?
    9·2 answers
  • A student loan is money a person borrows in order to:A: purchase a new house.B: buy luxury goods.c. pay for college tuition.D. p
    13·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!