85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
1–10 of 24 posts
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#2Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#3Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#4Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#5What's the language? My Firefox detected it as English, I suppose it is because of lang=en in HTML
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#6What's the language? My Firefox detected it as English, I suppose it is because of lang=en in HTML
Looks like Portuguese to me (I don't speak it)
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#7What's the language? My Firefox detected it as English, I suppose it is because of lang=en in HTML
Funnily enough, it took me a while to determine it was definitely Brazilian Portuguese, given I'm a native Portuguese speaker, because the whole thing is written in a stiff academic-ish style that hides some the differences between European and Brazilian Portuguese.
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#8For comparison, the best performing GPUs today can do FP32 at > 100 TFLOP/s
It would also be very interesting to see someone like Fabien Giesen / ryg do a maxed out AVX512 version for Zen5. His code's so fast it makes Intel 13900k's self destruct.
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#9For comparison, the best performing GPUs today can do FP32 at > 100 TFLOP/s
A modern Zen 5 should reach a throughput more than twice this value per core, with a total over 3 TFLOP/s for the complete CPU.
That 100 TFLOP/s for FP32 is for a GPU that might cost from 30 to 100 times more than a desktop CPU, so it is not certain that its performance per dollar is any better than for the desktop CPU.
This is very different from 7 to 10 years ago, when GPUs had a far higher performance per dollar than any CPUs. Since then, the performance per dollar of the desktop CPUs has increased, mainly because their prices have not increased much, while the performance per dollar of the GPUs has decreased, mainly because of a great increase in their prices, especially for the "datacenter" GPUs, which now may be more than 10 times more expensive than they were 7 years ago.
Re: 85.3 GFlops: Optimizing FP32 Matrix Multiplication on a Single AMD Zen 3 Core
#10It is likely that a similar optimization strategy would work for a modern Zen 5, though some of the parameters for the optimum variant would probably have double values, because Zen 5 has twice more registers, each double in size, and it can process and transfer a double number of FP32 per clock cycle.
The value given by the author of 63.5% of the theoretical maximum throughput, is likely to be pessimistic, because when doing heavy computations the clock frequency of the CPU will drop, so the actual efficiency might be higher, e.g. perhaps of 70% to 80% of the theoretical maximum throughput at that clock frequency.
The ATLAS BLAS-compatible library attempted to perform automatically such an optimization for its host computer, but I have not studied it to see whether its optimization methods would still work on modern CPUs with AVX+FMA or with AVX-512.