Re:Intel deprecates SGX on Core series processors
by WithinReason on Saturday April 16, 2022 @04:35AM
(#31050723)
If you're processing a lot of data, you're better off moving it to the GPU. If you're processing only a little data, the speed-up doesn't matter. I wonder how wide is the Goldilocks Zone where AVX512 makes a practical difference?
[ Parent
| on HN ]
Re:Intel deprecates SGX on Core series processors
by janwas on Saturday April 16, 2022 @06:54AM
(#31051346)
Golly, another sweeping statement :) It seems to me a GPU might actually sort more slowly.
For 64-bit keys, we sort about 1 GB/s per (5 year old) Skylake core, and perhaps 5-6 parallel.
This (2018) reports 3.5 GB/s: https://benkarsin.files.wordpress.com/2018/10/dissertation.p... And a 6-year old GPU radix sort reports 2.1 GB/s: https://github.com/Bulat-Ziganshin/Compression-Research/tree...
BTW I've worked on a product that used GPUs. That typically requires everything to move to the GPU, which is not always desirable or feasible.
Re:Intel deprecates SGX on Core series processors
by WithinReason on Saturday April 16, 2022 @12:46PM
(#31053840)
This (2020) reports "Despite the fact that we send the entire data array to the video card and back, sorting on GPU of 800 MB of data is performed about 25-fold faster than on the processor."
https://dev.to/tishden/computing-with-gpu-why-when-how-and-s...
This shows a approximately 20x speedup (2021, graph 1 vs 3): https://www.irjet.net/archives/V8/i7/IRJET-V8I7714.pdf
Re:Intel deprecates SGX on Core series processors
by janwas on Sunday April 17, 2022 @01:14AM
(#31058692)
Thanks for the example! Sounds like 1.6 GB/s on an entire Tesla K80 (300W TDP).
This is in fact several times slower than our results on Skylake (with half the TDP), but note that K80 is from 2014.
The "25-fold speedup", as is often the case for such reports, comes from not optimizing the CPU side.
Re:Intel deprecates SGX on Core series processors
by tryfinally on Saturday April 16, 2022 @08:29AM
(#31051774)
Assuming AVX-512 actually works well (haven't had the opportunity to use it myself), it could be very useful in high-end gamedev. Data-oriented programming is popular there, which makes it much easier to optimize data transformations w/ SIMD. Good compilers can even do some auto-vectorization (it's a nice boost with no additional programmer effort but you can't rely on it much). GPUs tend to be already fully loaded by the intensive rendering workload, so there is a large incentive to squeeze as much as you can out of the CPU.
Re:Intel deprecates SGX on Core series processors
by adgjlsfhk1 on Saturday April 16, 2022 @09:38AM
(#31052218)
gpus generally aren't worth it for moderately cheap O(n) operations. avx 512 is really nice because if you match the memory speed, you beat GPU (since the cost of GPU will also be memory speed constrained).