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

Step: 3

blur-text-image

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

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions