Profile GPU or SIMD code

Profile GPU or SIMD code in C++ — with the four heights of help laid out: do it now, make it easier for the next person to accept, work out the right move when you are stuck, and learn the pattern so it stops coming back.

4prompt heights
Open it in the interactive atlas →

The four heights

The same task, four distances: today's deadline, the next reviewer, the stuck moment, the pattern.

Execute — do the immediate task

+
I need a reproducible profile of the shader and SSE code path on our Linux dev machine. Run GPU…
I need a reproducible profile of the shader and SSE code path on our Linux dev machine. Run GPU profiling while executing the demo scene for 60 seconds at 1920x1080 using the latest driver, capture the GPU timeline and shader invocation counts, and produce a report that pinpoints the top three shaders by GPU time. For the CPU side, run an instruction-level profile that shows hot loops using AVX2 and provide annotated source lines with cycles per iteration.

Improve — make it easier to accept

+
Before I hand the profiling report to the rendering lead, make it actionable: surface the single…
Before I hand the profiling report to the rendering lead, make it actionable: surface the single biggest shader by GPU time, show its input sizes and whether it branches, list the top CPU functions that feed it with precise cycle counts, and flag any data-layouts that prevent vectorization. Include one concrete change that will likely cut GPU time by at least 15% and the estimated implementation risk.

Decide — diagnose the stuck moment

+
Running the scene on Linux looks fine, but on Windows machines with 4K monitors we see stutters and…

Frame drops appear only on Windows with high-resolution monitors

Running the scene on Linux looks fine, but on Windows machines with 4K monitors we see stutters and GPU spikes. I profiled briefly and saw one pixel shader with rising invocation time, but I don't understand if it's driver or our shadow atlas size. I'm afraid a change will only mask the issue. What diagnostics should I run next to distinguish driver scheduling, GPU memory thrash, and a shader algorithmic cost increase?

Become — change the pattern

+
Across several releases we repeatedly hit last-minute performance problems traced to a few heavy…

Every release we chase unknown GPU hotspots late in the cycle

Across several releases we repeatedly hit last-minute performance problems traced to a few heavy shaders and un-vectorized CPU paths. We lose days rewriting code under time pressure. Which habits around profiling earlier, code ownership, and test scenes should we adopt so GPU and SIMD issues get found and fixed earlier without breaking features?

Next to this one

Other programming language work people do in C++.

Every task here came from the work, not from a feature list — which is why the prompts name what you want done and never the button that does it. The tool changes; the work does not.
Copyright © LLOS.ai · 2026 — original pedagogy, voice, and design — all rights reserved.

The rest of the map

Same library, five ways in.