News for hackers. Stuff that matters.
Re:Measuring energy usage: regular code vs. SIMD code by jsheard on Monday February 19, 2024 @06:13PM (#39435977)
Memory traffic too, assuming the SIMD code is properly optimized, you can slam nicely aligned blocks of memory straight into a SIMD register rather than loading each element one at a time.
Re:Measuring energy usage: regular code vs. SIMD code by adgjlsfhk1 on Monday February 19, 2024 @06:23PM (#39436070)
this is less important than you would expect because memory gets fetched into caches 512 bits at a time. As such, the difference in power use is only the cost of loading from L1 cache (since the first instruction will bring the line to l1)