Thursday, June 30th 2022
AMD WMMA Instruction is Direct Response to NVIDIA Tensor Cores
AMD's RDNA3 graphics IP is just around the corner, and we are hearing more information about the upcoming architecture. Historically, as GPUs advance, it is not unusual for companies to add dedicated hardware blocks to accelerate a specific task. Today, AMD engineers have updated the backend of the LLVM compiler to include a new instruction called Wave Matrix Multiply-Accumulate (WMMA). This instruction will be present on GFX11, which is the RDNA3 GPU architecture. With WMMA, AMD will offer support for processing 16x16x16 size tensors in FP16 and BF16 precision formats. With these instructions, AMD is adding new arrangements to support the processing of matrix multiply-accumulate operations. This is closely mimicking the work NVIDIA is doing with Tensor Cores.
AMD ROCm 5.2 API update lists the use case for this type of instruction, which you can see below:
Source:
via VideoCardz
AMD ROCm 5.2 API update lists the use case for this type of instruction, which you can see below:
rocWMMA provides a C++ API to facilitate breaking down matrix multiply accumulate problems into fragments and using them in block-wise operations that are distributed in parallel across GPU wavefronts. The API is a header library of GPU device code, meaning matrix core acceleration may be compiled directly into your kernel device code. This can benefit from compiler optimization in the generation of kernel assembly and does not incur additional overhead costs of linking to external runtime libraries or having to launch separate kernels.
rocWMMA is released as a header library and includes test and sample projects to validate and illustrate example usages of the C++ API. GEMM matrix multiplication is used as primary validation given the heavy precedent for the library. However, the usage portfolio is growing significantly and demonstrates different ways rocWMMA may be consumed.

79 Comments on AMD WMMA Instruction is Direct Response to NVIDIA Tensor Cores
I do know some that use CUDA tho but they are not gamers.
I bought my RTX card because of performance and price. I have tried RT a few times but have been underwhelmed by how little it adds and how much it tanks performance for the little it offers. None of the games i play regularly even support these features.
Nvidia cards are bought because of mindshare and performance mostly. It used to be perf per W but that's gone now. It has little to do with features.
The popcorn tastes better than ever.
What performance? Are you saying that the Radeon cards have no performance?
Also AMD was MIA from the top end GPU space from Polaris till RDNA2 basically! So anyone wanting 2070/80 tier performance either had to go Nvidia or wait 3(4?) years.
Suggesting to sell the card, he'd maybe get $500 used for it and to buy a 6700XT that's about the same performance (maybe slightly behind), but have to spend upwards of $550 (or more) for one is stupid. Even more dumb suggesting he'd buy a 6800XT that can cost upwards of $850.
I can honestly say the only game I've played on my 3080 that allows use of DLSS and RTRT was Metro Exodus and after using both on and off, I wasn't impressed by the RT or DLSS. Does that mean I won't them down the road on other games? Who knows, I may or may not.
I personally haven't been impressed with RT from either side since it came out last gen. Do I feel bad for AMD that they're so far behind what Nvidia can do or do I feel bad for Nvidia for having dedicated Tensor cores to handle RT and they still suck at it?
Maybe next gen, but most likely the following, AMD and Nvidia should be able to handle RT without tanking performance like hell or requiring the use of DLSS/FSR to make up for the loss of performance. As it stands, for me, RT is just a gimmick for a selling point. I also see DLSS and FSR having been designed to keep performance (FPS) up since hardware hasn't been able to keep up with advances in games.....that, or they're designed to help offset the poor coding from devs that launch games that run like crap.
When someone here asks what to buy, the nvidia users jump immediately and begin listing those mystical "features" and justifications why the someone has to buy an nvidia card and nothing else.
Here, I am doing the opposite - trying to figure out what the response will be if I said the same, and people like you jump on my throat claiming it wasn't that.
I don't know if it's simple trolling or weird forum psychology but it's ugly and not fair.
Otherwisde, this will end-up being another closed system that nobody will use.
What is unfortunate is some games look awful (Control) yet they run poorly, seems to a waste of resources.
Example below, it looks pathetic, what's the point of implementing realistic lighting when the mug looks so comically unrealistic. First make the mug looks like a real mug then and only then add the pointless RT (pointless till reasonably priced GPUs can handle RT with no effort like tesselation before).
IMO DLSS is a valid selling point, espacially to ppl playing at lower resolution, at 4K FSR works just as well as DLSS, even in ultra performance, but at 1080P FSR 2.0 is simply not usable at all.
Maybe he won it in a contest.
Maybe he stole it.
Maybe it was priced a whole helluva a lot better than the 6700XT was when he got it (for me I could have purchased a 3070 for around $850 at the height of the high prices whereas the 6700XT at the same time were over $1k. The 6800XT were around $1500. Even if I wanted something that performed around a 6800XT level I'd have gone with a RTX 3080 because they were only around $1100-1200, much cheaper than the 6800XT)
Maybe someone gave it to him as a gift.
Maybe he's always used Nvidia and kept with them.
Maybe he's always used AMD/ATI before and wanted to see what it was like to use Nvidia.
You were the one that gave bad advice to sell it and pick up a 6700XT or 6800XT - which would cost him more over what he would sell his 3070 for. Expect to be criticized for poor comments.
A logical assumption is that AMD's implementation will target area optimized solution for matrix calculations (just like they usually do for nearly everything not contributing to classic raster performance, raytracing included) with the actual performance level potential in relation with the competition being a nearly secondary consideration.
Also irrespective of performance, it seems (based on the below) that the supported formats/layouts being less than the competition leading potentially to less use cases also. (But first Nvidia must use their tensor cores for more cases other DLSS's implementation in order to even matter, maybe it's time with Ada)
Regarding FSR 2.0, it isn't equivalent to DLSS 2.X but it's close in higher resolutions in most cases and most of the implementations are on games that had DLSS, so the experience that developers had implementing/use motion vectors etc really helped the process/results.
The problem is that FSR 2.0 uses fixed algorithms while DLSS uses machine learning so the gap is probably going to widen as AI evolves and gets better through the years, so certainly FSR 2.0 isn't the DLSS replacement that AMD fans want, an open source AI implementation some day maybe yes, although training isn't free.
DLSS is at least more consistent from one game to the next ! You cant somehow pretend that just because AMD's solution is open-source, that the devs care not going to rewrite it for every game - that's why we have over TWO DOZEN actively-maintained windowing environments on Linux - plus several times as many package management systems as anywhere else!
So, do you really trust some random game intern to figure thing out on his own every time, orf do you expect "yet another mess" nearly every time they get te freedom? For every Proton managed by Valve, there's two dozen inferior copies of the same upscaler - until AMD takes the same level of responsibility thy did for their initial launch tittles, the mess will continue