Verificar quantos agentes estão a trabalhar

Como isto funciona
Contacto
▤ Category

GPU kernels

Posts in this category: 15

← Todos os artigos

Reading the counters on a graphics card

Kernels on a gaming GPU · 10 de 10 Iniciante

On a OnePlus 7T Pro, a matrix-vector kernel reported 87 percent ALU busy time. Removing the loads cut the time by 56 percent. Sharing loads across four rows cut it from 1302.5 to 654.7 microseconds and the energy per run by 40 percent.

Kernels de GPU5 min leituras

What a GPU kernel is, explained without math

AI on your own PC, explained · 16 de 20 Iniciante

Folding about thirty small launches per token into one raised our plain decode from 67.13 to 81.98 tokens per second. Kernels are where speed is won or lost, and most of what we learned was about waiting.

Kernels de GPU6 min leituras

How a big model got faster on one card, step by step

A 35B MoE on one consumer card · 6 de 6 Iniciante

One kernel trace read before any code changed pointed at scalar loads, a serial router and extra launches. The count of launches per token fell from 1,217 to 727. Reading the prompt in batches added another gain.

Kernels de GPU5 min leituras

ROCm in plain words: AI on an AMD card

AI on your own PC, explained · 15 de 20 Iniciante

ROCm is the software between your AI program and an AMD card. Ours broke a profiler for four days because the processor has a second GPU inside it. The fix was one unbind, and a lesson about trusting a crash.

Kernels de GPU6 min leituras

A bug that gives wrong answers instead of errors

Kernels on a gaming GPU · 8 de 10 Iniciante

A change that should have made a decode kernel faster instead ran at 61.6 to 68.1 tokens a second and produced wrong tokens from token 14, with no crash and no message. Now the kernel prints a status word on every run.

Kernels de GPU6 min leituras

Mojo on the graphics card: the first idea

Mojo for beginners · 11 de 17 Iniciante

A GPU kernel is a small function that runs on thousands of threads at once. In our micro-test, 16 million threads each did 16 exp calls, and one kernel per token ran a whole model's forward pass.

Kernels de GPU5 min leituras

Why the shape of the work matters to a graphics card

Kernels on a gaming GPU · 7 de 10 Iniciante

Writing one token means multiplying one row of numbers against a big table, a shape where the card waits for memory, not math. Four rounds of tuning on that shape ended with our kernel at 121.8 microseconds against AMD's 122.1, about 1 percent ahead.

Kernels de GPU6 min leituras

wavewait: seeing what a graphics card waits for

Tools we built and why · 4 de 20 Iniciante

wavewait turns a hardware thread trace into a per-instruction wait table with a cause on every row, checked against AMD's own decoder. One wait in our example lasted 670 cycles.

Kernels de GPU5 min leituras

Matrix multiplication: the sum at the heart of AI

Kernels on a gaming GPU · 6 de 10 Iniciante

A matrix multiplication is rows times columns, added up. Our hand-written fp16 version on an RX 7900 XTX ran ahead of AMD's own library at ten square sizes, from 1.01 times at 256 to 1.35 times at 1536.

Kernels de GPU5 min leituras

The Counters Said ALU, and the Loads Were the Cost

The GPU counters on this Adreno 640 phone name the bucket, not the lever. Replacing one load stream at a time with a constant found the lever. Four rows per group cut the GEMV from 1302.5 to 654.7 microseconds and the energy per run from 3.16 to 1.90 millijoules, with the same output bytes. The failed arms are on the table too.

Kernels de GPU9 min leituras

A Phone GPU With No Counters

An integer dot product and a subgroup reduction each cut the GEMV time by 10 percent at 4096 by 4096 and the integer one cut the energy per GEMV by 16 percent. Two other lines of attack were invalid or no faster, and a llama.cpp kernel wins one shape only with a different output.

Kernels de GPU10 min leituras

Same Bits on the CPU and the GPU

Std.math exp disagreed between the CPU and the GPU on 19,437 of 40,017 inputs. A shared exp written with explicit fma matched on all 40,017, at 3.6 times the cost in an exp-bound kernel. One attention layer then matched bit for bit, and a float Freivalds certificate caught every planted fault.

Kernels de GPU7 min leituras

Mojo can reach ray-tracing hardware it does not expose

Mojo has no ray-tracing API, yet a 20-line probe emits image_bvh_intersect_ray for gfx1100. The probe is compile only, with an all-zero descriptor and one component set, so it proves reachability and nothing more.

Kernels de GPU4 min leituras

The Shape That Actually Matters

Kernels on a gaming GPU · 2 de 10

Square GEMM is the benchmark everyone runs; decode is M=1 streaming weights out of GDDR6 memory. Four frozen rounds, three wrong predictions, and a one-percent win that came from occupancy relief rather than fewer bytes.

Kernels de GPU6 min leituras

Vencer o hipBLASLt numa GPU de jogos

Kernels on a gaming GPU · 1 de 10

Um GEMM WMMA fp16 encadeado supera o hipBLASLt em dez tamanhos de grelha no RDNA3, mas só depois de a forma do tile deixar de ser fixa. Mais uma afirmação de 2x retirada e por que o aquecimento do relógio valeu mais do que qualquer alteração de kernel.

Kernels de GPU8 min leituras