| ▲ | ecshafer 4 hours ago | |||||||||||||||||||||||||||||||||||||||||||
Back in like 2006ish (if I remember right) there were some papers that came out that were showing that GPUs had much higher throughput for processing than full cpu clusters. And some other ones that (pre-cuda) showed using shaders to do linear algebra. Basically when GPUs became good, there was this inevitable momentum that they would be used for calculations because they are that much better than cpus for doing math. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | cowlevel 2 hours ago | parent | next [-] | |||||||||||||||||||||||||||||||||||||||||||
They called it GPGPU, the first GP meaning general-purpose. And the computation was hacked to run through the 3D system, using textures to hold input data and pixel shaders to do computations, then taking screenshots to get the results. I heard of it at the time it was happening, and thought it was a stupid insane idea, but here we are. | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | throw0101c 3 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
> Back in like 2006ish (if I remember right) there were some papers that came out that were showing that GPUs had much higher throughput for processing than full cpu clusters. Nvidia hired Ian Buck in 2004, and the first release of CUDA was in 2007: * https://en.wikipedia.org/wiki/CUDA#History Digging into the history a bit, it's interesting to see earlier papers; from Eurographics 2005, "A Survey of General-Purpose Computation on Graphics Hardware": * https://research.nvidia.com/publication/2005-08_survey-gener... | ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | dist-epoch 4 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
Yeah, I was doing math on GPUs in 2006 using OpenGL and shaders. People say "NVIDIA created CUDA before people realized the power of GPUs and revolutionized the world", it was the other way around, people used graphical shaders to run compute jobs on GPUs, and begged NVIDIA to create a less sucky way of doing this. | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | cortesoft 4 hours ago | parent | prev | next [-] | |||||||||||||||||||||||||||||||||||||||||||
Isn't the only reason GPUs exist is because they are better at doing parallel math? | ||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||
| ▲ | adrian_b an hour ago | parent | prev [-] | |||||||||||||||||||||||||||||||||||||||||||
In the early years of CUDA and GPGPU, NVIDIA published many papers full of lies, claiming that GPUs are typically 100 times faster than a CPU. All those papers contained bad benchmarks, where an optimized GPU program was compared with a naive CPU program that used only a small fraction of the computational throughput of the CPU. In reality, it is far easier to write a CPU program that reaches a great percentage of the maximum theoretical throughput, than to write a GPU program that reaches a similar percentage of its maximum theoretical throughput. During more than a decade, for many generations of Intel Xeon CPUs and NVIDIA datacenter GPUs, the advantage in FP64 throughput per watt for GPUs has been of only 3 times, very far from the 100 times claimed by NVIDIA. In recent years it has become more difficult to compare the performances of the GPUs with CPUs, due to the poor public documentation of the datacenter GPUs, which would need a hands-on access to measure the true performance. Nonetheless, it seems that the performance per watt ratio has increased in the favor of GPUs, up to 4 times or even 5 times. The reason is the introduction in GPUs of the so-called "tensor units", more correctly named "matrix units", which in datacenter CPUs are also available for FP64. Recent Intel Xeons and the future AMD Zen 7 also have matrix units, but they are available only for ML/AI, not for FP32 or for FP64, hence the increased advantage for GPUs. While GPUs always have an advantage in throughput per watt, the huge increase in the price of datacenter GPUs in recent years has ensured that the best performance per dollar for FP64 computations is achieved by desktop CPUs, not by GPUs (with the exception of Intel Battlemage GPUs, wich have an even better performance per dollar than any CPU, but which have a low absolute performance, lower than an AMD 9950X). When comparing CPUs with GPUs, only the performance per watt and the performance per dollar matter, because either your purchasing budget or the available electricity supply will determine the maximum performance achievable, not the performance per CPU or per GPU. | ||||||||||||||||||||||||||||||||||||||||||||