3 ms·
> SIMD […] is a good alternative to multithreading They are not alternatives to eachother, they are orthogonal things, unless you're using a GPU.
by TazeTSchnitzel 7y ago
> SIMD […] is a good alternative to multithreading
They are not alternatives to eachother, they are orthogonal things, unless you're using a GPU.
- deleted 7y ago[deleted]
- z0mbie42 7y agoThey can, but as explained in one of the article (by Cloudflare, "On the dangers of Intel's frequency scaling") SIMD in a multithreaded environment can cause performance problems due to CPU throttling. So generally SIMD are used for single thread algorithms.
- gameswithgo 7y agoI'm not sure it is fair to say "Generally". Sometimes, you maybe don't want to multithread it. When I've used it, multithreading was still useful, despite downclocks, by huge margins. And on AMD cpus, the downclock issue doesn't exist near as badly.
- opportune 7y agoIf you're doing a scientific workload where you need to process all your vectors before moving on to the next part of the simulation, you're still better off multithreading your vectorized operations even with the throttling.