A uniprocessor computer can operate in both scalar and vector modes, performing calculations nine times faster in vector

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

A uniprocessor computer can operate in both scalar and vector modes, performing calculations nine times faster in vector

Post by answerhappygod »

A uniprocessor computer can operate in both scalar and vectormodes, performing calculations nine times faster in vector mode. Atest program consumes time T on this computer. Of this time, 25%corresponded to vector mode, and the rest of the time to scalarmode.
a) Calculate the effective speed gain under the aboveconditions, relative to not using vector mode. Also calculate α,percentage of code that has been vectorized in the indicatedprogram
b) Suppose the speed ratio between vector and scalar mode isdoubled by hardware improvements. Calculate the effective speedgain achieved.
c) Consider that the same speed gain obtained in (b) is obtainedfrom compiler improvements, rather than through hardware changes.What should now be the new vectorization percentage (α) that thecompiler should provide for the same test program.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply