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.
A uniprocessor computer can operate in both scalar and vector modes, performing calculations nine times faster in vector
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am