Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) Consider the following loop for i i n range ( 2 5 6 ) : i f x [ i ] 0 ,

a) Consider the following loop
for iin range (256) :
ifx[i]0
,x[i+1]=x[i]+Y[i]-z[i]
Is the above loop vectorizable? If not, then show where the problem lies.
b) Compare the Intel's SIMD extension instructions and RISC-V vector instructions.
c) Consider the following code where ' and B are mmory-based arrays and 's' a double precision FP
number also stored in memory:
for {:[iinrange(200):]A[i]=A[i]**sB[i]=B[i]+A[i]
The following table gives the stall cycles required between instruction producing the result and the
instruction using that result.
The corresponding assembly code without any scheduling is given as under:
Suppose a three-issue VLIW machine is designed that can issue one ALU/Branch, one FP operation,
and one memory reference instruction in every clock cycle. Schedule the above code on this VLIW
processor so that the stalls are minimized and IPC is maximized. You can also unroll the loop if
required for better performance. All forwarding paths are available. What is the maximum IPC you
achieved? Compare it with the theoretical maximum.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DB2 11 The Database For Big Data And Analytics

Authors: Cristian Molaro, Surekha Parekh, Terry Purcell, Julian Stuhler

1st Edition

1583473858, 978-1583473856

More Books

Students also viewed these Databases questions

Question

Solve Prob. 27.4 with the finite-difference approach using x = 2.

Answered: 1 week ago