News Score: Score the News, Sort the News, Rewrite the Headlines

Measuring energy usage: regular code vs. SIMD code

Modern processor have fancy instructions that can do many operations at one using wide registers: SIMD instructions. Intel and AMD have 512-bit registers and associated instructions under AVX-512. You expect these instructions to use more power, more energy. However, they get the job done faster. Do you save energy overall? You should expect so. Let us consider an example. I can just sum all values in a large array. float sum(float *data, size_t N) { double counter = 0; for (size_t i = 0; i < N;...

Read more at lemire.me

© News Score  score the news, sort the news, rewrite the headlines