[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M718N5TRS8ABGE5YQ5M0ZEWY":3,"skill-same:01M718N5TRS8ABGE5YQ5M0ZEWY":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":15,"categories":16,"keywords":17,"publishedAt":38,"linkOnly":39,"markdownContent":40,"markdownBody":41,"frontMatter":42,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":46,"repositoryHtmlUrl":47,"repositoryHomepageUrl":48,"ownerHtmlUrl":49,"ownerBlogUrl":48,"ownerDescription":50,"updatedAt":51,"install":52,"resources":65},"01M718N5TRS8ABGE5YQ5M0ZEWY","cpu-tuning",null,"Profile and tune Llaminar V2 CPU kernels with Linux perf, hardware-counter and ISA analysis, physical-core scaling, NUMA-aware placement, OpenMP worksharing, and AVX2\u002FAVX-512 validation. Use when asked to find a CPU hotspot, explain low IPC or cache misses, inspect SIMD code generation or register spills, tune CPU GEMM\u002FGEMV\u002Fattention\u002Fquantization kernels, compare thread counts or ISA regimes, or prove a CPU optimization improves production throughput without breaking parity or deterministic grouped decode.","Llaminar\u002Fllaminar","Llaminar","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F247404048?v=4","01M718MTZG2TQSA7DEB5DKQDN1","01M718MV06G9CV8S2JMN9XHX8Y",48,"AGPL-3.0","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.agents\u002Fcpu-tuning\u002FSKILL.md",[],[18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37],"tuning","cpu tuning","CPU","simd","Optimization","core","register","perf","attention","deterministic","throughput","parity","Code Generation","decode","code","analysis","when","openmp","inspect","scaling","2026-11-10 10:12:30",false,"---\nname: cpu-tuning\ndescription: Profile and tune Llaminar V2 CPU kernels with Linux perf, hardware-counter and ISA analysis, physical-core scaling, NUMA-aware placement, OpenMP worksharing, and AVX2\u002FAVX-512 validation. Use when asked to find a CPU hotspot, explain low IPC or cache misses, inspect SIMD code generation or register spills, tune CPU GEMM\u002FGEMV\u002Fattention\u002Fquantization kernels, compare thread counts or ISA regimes, or prove a CPU optimization improves production throughput without breaking parity or deterministic grouped decode.\n---\n\n# CPU Kernel Profiling and Tuning\n\nUse an evidence-driven loop: establish the production baseline, isolate one\nkernel and geometry, collect counters without contaminating canonical timing,\ninspect the hot instructions, change one hypothesis, then repeat the focused\nand end-to-end correctness\u002Feconomy gates.\n\n## Preserve the execution contract\n\n- Keep hot-path state host-owned and persistent. Do not add allocation,\n  repacking, format conversion, or topology changes to make an isolated kernel\n  look faster.\n- Preserve the production arithmetic order. Grouped verifier rows must remain\n  byte-identical to serial M=1 decode for every supported format and positive\n  thread count.\n- Use physical cores as the default worker budget. Treat SMT, cross-socket\n  placement, and nested BLAS\u002FOpenMP teams as separate, explicitly measured\n  modes.\n- Use `OMP_WORKSHARE_REGION` and its companion macros from\n  `src\u002Fv2\u002Futils\u002FOpenMPUtils.h`; do not create an unconditional nested\n  `#pragma omp parallel` region inside a kernel.\n- Keep profiler collection separate from canonical latency samples. Never use\n  `perf` overhead, sampling runs, or hardware-counter collection as dispatch\n  labels.\n- For NativeVNNI corpus collection, policy fitting, certification, or install,\n  also read [nativevnni-gemm-tuning](..\u002Fnativevnni-gemm-tuning\u002FSKILL.md). Its\n  trainer-owned `perf_event_open` protocol is the production evidence\n  authority; use its existing collector\u002Fdriver rather than inventing profiler\n  environment variables. The system-wide `perf` workflow below is for\n  diagnosis.\n\n## 1. Define one exact experiment\n\nRecord all dimensions that can change the result:\n\n- binary digest and `Release` or `Integration` build type;\n- compiled ISA (`LLAMINAR_CPU_ISA=AVX2` or `AVX512`) and runtime ISA route;\n- socket, NUMA node, physical CPU list, and OpenMP team size;\n- tensor format\u002Fcodebook, serial M=1 versus grouped-verifier operation,\n  `(M,N,K)`, and candidate;\n- warmup count, sample count, prompt hash, and execution mode.\n\nInspect topology before choosing a CPU list:\n\n```bash\nlscpu -e=CPU,CORE,SOCKET,NODE,ONLINE\nnumactl --hardware\n```\n\nDo not assume that logical CPUs `0-N` are one physical socket. Derive a\nphysical-core list from the actual host and use the same list for both\n`taskset` and `perf -C`.\n\nBuild and measure the production baseline without profiler-only flags:\n\n```bash\ncmake -B build_v2_release -S src\u002Fv2 -G Ninja \\\n  -DCMAKE_BUILD_TYPE=Release -DLLAMINAR_CPU_ISA=AVX512\ncmake --build build_v2_release --parallel\n\n.\u002Fbuild_v2_release\u002Fllaminar2 benchmark -m \u003Cmodel>.gguf -d cpu:0 \\\n  --prompt-file \u003Cfixed-prompt.txt>\n```\n\nRun enough clean repetitions to establish a noise band. Canonical benchmarks\nretain normal MPI bootstrap, pinning, and NUMA setup. A change inside the noise\nband is not a win.\n\nUse explicit PerfStats output to prove the production route and host phases:\n\n```bash\nLLAMINAR_PERF_STATS_JSON=\u002Ftmp\u002Fllaminar-cpu-perfstats.json \\\nLLAMINAR_PERF_STATS_SUMMARY=1 \\\n.\u002Fbuild_v2_release\u002Fllaminar2 benchmark -m \u003Cmodel>.gguf -d cpu:0 \\\n  --prompt-file \u003Cfixed-prompt.txt>\n```\n\n`LLAMINAR_PROFILING=1` is a deprecated compatibility alias. Do not use it to\nchange execution topology, and do not treat the legacy\n`LLAMINAR_PROFILE_KERNELS=1` table as whole-model attribution.\n\nPrefer a focused performance binary under\n`tests\u002Fv2\u002Fperformance\u002Fkernels\u002Fcpu\u002F` for iteration. Representative targets\ninclude:\n\n```bash\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_native_vnni_thread_scaling\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_flash_attention_sweep\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_flash_attention_tile_tournament\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_gemm_tuning_sweep\n```\n\nSearch `tests\u002Fv2\u002FCMakeLists.txt` for the exact target that owns the kernel; do\nnot profile a neighboring proxy when the production-shaped harness exists.\n\n### CPU FlashAttention cache-tile policy\n\nCPU FA2 keeps arithmetic and cache blocking separate. The shared scheduler in\n`CPUFlashAttentionKernelT.h` always forms canonical 256-row online-softmax\nsummaries and merges them in ascending K\u002FV order. A physical K\u002FV tile may alter\nwhich rows stream through private cache in one callback, but it must never alter\nscore indexing, four-row vector groups, summary boundaries, or output bytes.\nDo not install a tile optimization that couples those two policies again.\n\nBuild and certify AVX2 and AVX-512 independently with Release code generation:\n\n```bash\ncmake -B build_v2_release_avx2 -S src\u002Fv2 -G Ninja \\\n  -DCMAKE_BUILD_TYPE=Release -DLLAMINAR_CPU_ISA=AVX2\ncmake --build build_v2_release_avx2 --parallel --target \\\n  v2_perf_cpu_flash_attention_tile_tournament\n\npython tests\u002Fv2\u002Fperformance\u002Fkernels\u002Fcpu\u002Fattention\u002Frun_cpu_fa2_tile_tournament.py \\\n  --binary build_v2_release_avx2\u002Ftests\u002Fv2\u002Fv2_perf_cpu_flash_attention_tile_tournament \\\n  --family-repeats 3 --max-p95-regret 5\n```\n\nRepeat with `-DLLAMINAR_CPU_ISA=AVX512` and a distinct AVX-512 build directory.\nAlso run that AVX-512 binary with `LLAMINAR_ISA_LEVEL=avx2`; compiler code\ngeneration and runtime algorithm dispatch are independent measured axes, and\nthe mixed regime must not reuse AVX2-only evidence implicitly. Tournament CSV\nand summaries must name both `codegen_isa` and `runtime_isa`.\n\nThe driver selects one hardware thread per physical core on one socket, runs\neach `(native K\u002FV format, head dimension)` family in a fresh process, and takes\nthe median domain regret across fresh-process repeats. Its complete compact\nmatrix is nine native K\u002FV pairings, head dimensions 64\u002F128\u002F256, decode M=1,\ngrouped M=15, prefill M=128, and all seven compiled physical tiles. Every\ncandidate is byte-authenticated through the production kernel before timing;\nmissing candidates, mixed code-generation\u002Fruntime ISA profiles, malformed\nevidence, and byte mismatches are fatal. Use `--cpu-list` when topology or\ngovernor control requires an explicit socket.\n\nFor one isolated profiler experiment, filter the C++ worker directly with\n`LLAMINAR_CPU_FA2_TOURNAMENT_FORMAT`, `_HEAD_DIM`, `_M`, `_KV`, and `_TILE`.\nSet `_SAMPLES` to a complete forward\u002Freverse candidate-cycle count, keep\n`_WARMUP` outside timing, and use `_COLD=1` only for an explicitly cold-cache\nquestion. One `_TILE` worker is profiler evidence, not a regret certificate.\nKeep the all-tile integration regressions and the process-isolated policy gate\ngreen after any scheduler, codec, cache rule, or SIMD change.\n\n## 2. Prepare Linux perf safely\n\nCheck counter access and available events first:\n\n```bash\nsysctl kernel.perf_event_paranoid\nperf list\n```\n\nIf access is denied, change `kernel.perf_event_paranoid` only with authorization\nbecause it is host-wide. Record the current value, temporarily enable access\nwith `sudo sysctl -w kernel.perf_event_paranoid=-1`, and restore the recorded\nvalue after collection.\n\nUse two attachment patterns:\n\n1. Profile standalone test\u002Fperformance binaries directly. They do not MPI\n   bootstrap, so do not pass `--no-mpi-bootstrap`.\n2. When profiling `llaminar2` directly, pass `--no-mpi-bootstrap` so `perf`\n   attaches to the compute process instead of the `mpirun` wrapper. Pin the\n   selected CPUs and set the OpenMP policy explicitly. This mode is diagnostic\n   only because it does not reproduce the full bootstrap placement contract.\n\nCapture all worker activity unambiguously with system-wide collection limited\nto the pinned physical CPUs:\n\n```bash\nperf stat -a -C \u003Cphysical-core-list> \\\n  -e cycles,instructions,branches,branch-misses,cache-references,cache-misses \\\n  -- taskset -c \u003Cphysical-core-list> \\\n  env OMP_NUM_THREADS=\u003Cphysical-core-count> OMP_PLACES=cores OMP_PROC_BIND=close \\\n  .\u002Fbuild_v2_release\u002Fllaminar2 benchmark --no-mpi-bootstrap \\\n    -d cpu:0 -m \u003Cmodel>.gguf --prompt-file \u003Cfixed-prompt.txt>\n```\n\nNever report the wall time from this profiler-only invocation as the production\nbenchmark result.\n\n## 3. Use perf stat for counter evidence\n\nStart with portable counters, then add model-specific events that `perf list`\nconfirms are supported:\n\n```bash\nperf stat -r 5 -a -C \u003Cphysical-core-list> \\\n  -e cycles,instructions,branches,branch-misses,\\\nL1-dcache-loads,L1-dcache-load-misses,LLC-loads,LLC-load-misses \\\n  -- taskset -c \u003Cphysical-core-list> \u003Cfocused-perf-binary> \u003Cfocused-args>\n```\n\nReject multiplexed or unsupported counter sets rather than silently comparing\ndifferent evidence. Profile one exact kernel\u002FISA\u002Fshape\u002FM candidate per run.\n\nInterpret ratios in context, not as universal pass\u002Ffail constants:\n\n| Evidence | Likely interpretation | Next check |\n|---|---|---|\n| Low IPC with high LLC\u002FDRAM traffic | memory or NUMA limited | placement, first touch, bytes per logical work |\n| Low IPC with low cache traffic | dependency, branch, barrier, or front-end stalls | sampled hotspot and annotated ISA |\n| High branch-miss rate | irregular dispatch or hot-loop control flow | split aligned and boundary paths |\n| High instructions per logical work | excess decode, shuffle, reduction, or bookkeeping | instruction census against the baseline |\n| More threads but flat throughput | barriers, false sharing, bandwidth, or too little work per worker | physical-core scaling and `libgomp` samples |\n\nFor VNNI kernels, calculate IPC, instructions per logical MAC, cache traffic per\npayload byte, and speedup across one thread through the physical cores per\nsocket. Raw miss counts alone are misleading when candidates execute different\namounts of work.\n\n## 4. Find and annotate the hotspot\n\nWrite profiler artifacts outside the repository:\n\n```bash\nperf record -o \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  -a -C \u003Cphysical-core-list> -F 997 --call-graph fp \\\n  -- taskset -c \u003Cphysical-core-list> \u003Cfocused-perf-binary> \u003Cfocused-args>\n\nperf report -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --no-children --sort=dso,symbol\nperf report -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --no-children --stdio --sort=symbol\nperf annotate -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --symbol='\u003Chot-symbol>' --stdio\n```\n\nUse `--call-graph fp` only when the binary was compiled with frame pointers.\nFor a profiling-only optimized build, add `-fno-omit-frame-pointer` to the\n`Integration` C\u002FC++ flags and keep its timings separate from the canonical\n`Release` baseline. If exact production code generation matters more than call\nstacks, profile the `Release` binary with an unwinder supported by the host and\nquantify lost samples before trusting the call graph.\n\nIn annotated assembly, look for:\n\n- stack spill\u002Freload traffic from excessive live vector registers;\n- register-to-register ZMM\u002FYMM shuffles that crowd out dot-product work;\n- `vpdpbusd`\u002FVNNI or the intended AVX2 sequence on the production-selected\n  path;\n- hot loads with poor locality or cross-NUMA traffic;\n- time in `libgomp` barriers or `pause` rather than in the kernel;\n- scalar tails or boundary branches dominating small shapes.\n\nUse `objdump -dC -Mintel \u003Cbinary>` for a stable instruction census when sample\nannotation alone is ambiguous.\n\n### Classify spills by execution regime\n\nDo not treat a compiler spill count as either universally fatal or harmless.\nFirst delimit the actual inner loop by symbol address, branch targets, and\nsource annotation; prologue saves, scalar pointer slots, exception paths, and\nunreached ISA branches are not hot-loop vector spills. Build AVX2 and AVX-512\nseparately because an AVX-512 build can hide pressure in code that is meant to\nrepresent the 16-register AVX2 regime.\n\nFor compute-bound GEMM and grouped-verifier candidates, a vector spill in the\nK loop disqualifies the candidate. Keep a no-spill geometry available and\nreduce the live set by narrowing the N tile, decoding\u002Floading one subchunk at a\ntime, scoping broadcasts to their use, or disabling an unprofitable unroll.\nPreserve independent accumulator chains so removing a spill does not replace\nmemory traffic with a long dependency chain.\n\nA streaming GEMV candidate may retain measured spill traffic only when all of\nthe following are true:\n\n- counters establish that the domain is memory-bound rather than\n  front-end\u002Fcompute-bound;\n- a no-spill candidate for the same format, geometry, M, and ISA is measured in\n  the same tournament;\n- the spilling candidate wins canonical latency beyond the noise band and does\n  not increase bytes moved enough to lose at neighboring shapes;\n- byte-equivalence and thread\u002FISA totality gates pass.\n\nNever infer that a spill is acceptable merely because one memory-bound Q6\nshape tolerated it. Candidate evidence is domain-specific, and spilling\nvariants must not be eligible in compute-bound dispatch domains.\n\n### Keep compact-format ILP while shortening decode live ranges\n\nCompact formats such as Q6_K can need more decode state than nibble-LUT or\nexpanded-INT8 formats. When grouped M=2 work is under-filled, first widen the\ncolumn span so one worker owns enough independent dot products; do not create\ntwo separate row launches. Then reduce register pressure inside that wider\ntile without collapsing its independent accumulator chains:\n\n- inspect the generated K loop itself, not prologue saves or cold scalar\n  branches, before classifying a spill;\n- load, decode, consume, and retire one low\u002Fhigh bitplane group before decoding\n  the next group;\n- combine disjoint bitplanes with masked integer adds when that removes a\n  longer merge\u002Fshuffle sequence and preserves the exact decoded bytes;\n- use the narrowest VNNI width that matches auxiliary reductions such as a\n  half-block activation sum, instead of keeping unnecessary ZMM constants live;\n- keep one accumulator per output row and column vector, and visit K blocks in\n  the same ascending order as serial M=1 decode.\n\nThe acceptance gate is simultaneous: byte equality against independent serial\nrows across the all-format\u002Fruntime-M sweep, no hot-loop spill for a\ncompute-bound candidate, and a repeated latency win over serial decode. A\nlower register count that loses cross-row reuse or changes FP accumulation is\nnot an optimization.\n\n### Tune NativeVNNI cache tiles from the prepared execution layout\n\nCache policy must model the bytes consumed by the production kernel, not the\ncompact source GGUF block. Use `NativeVNNIPreparedFootprint` and include all\nlive data owned by one physical microkernel tile:\n\n- the exact interleaved weight stride, including compensation, scales, and\n  optional minima;\n- the Q8 activation blocks for every simultaneously live physical row;\n- the FP32 output chunks that remain live while K is accumulated;\n- the prepared encoding and asymmetry, because nibble decode, expanded INT8,\n  and native dual-scale Q6 have different reuse\u002Fcompute balances.\n\nDerive capacity and associativity from `CacheInfo`, reserve explicit\nassociativity headroom, and keep the residency fraction a typed, testable\npolicy. Unit tests must inject synthetic cache topologies and assert exact\nblock counts for every physical prepared encoding. Do not use a guessed source\nbytes-per-weight ratio or let a benchmark-host cache size become a constant.\n\nTreat cache residency as a tournament parameter, not as a folklore percentage:\n\n1. Cover symmetric\u002Fasymmetric nibble, symmetric\u002Fasymmetric expanded INT8, and\n   native Q6. Source codebooks that map to the same prepared encoding still\n   belong in the final all-format correctness sweep.\n2. Measure grouped depths on both sides of any proposed mode transition and\n   include representative attention, FFN, and terminal-head geometries.\n3. Interleave candidates in rotating order. Bracket the automatic candidate\n   above and below, retain adjacent odd block counts, and include full K. A\n   tournament that only searches one side of a changed default cannot report\n   honest regret.\n4. Enclose one additional warmed production launch for one exact\n   `(format, ISA, M, N, K, candidate)` in the process-owned perf interval.\n   Setup, quantization, correctness, warmup, other candidates, and canonical\n   timing must remain outside that interval.\n5. Prefer a candidate when lower wall time and cycles coincide with an\n   explanatory signal such as fewer L2\u002FLLC misses at similar instruction\n   count. A raw timing fluctuation without a mechanism is not enough to encode\n   a new generic policy.\n\nThe focused NativeVNNI cache-tile tournament is\n`v2_perf_cpu_native_vnni_dispatch_sweep`, test\n`CacheKTilesCoverAllPreparedFootprints`. Select geometry with\n`LLAMINAR_CPU_NVNNI_CACHE_TILE_M`, `_N`, and `_K`; select one exact profiler\nlaunch with `_FORMAT`, `_CANDIDATE`,\n`LLAMINAR_NATIVE_VNNI_PROFILE_REQUEST_ID`, and\n`LLAMINAR_NATIVE_VNNI_PERF_STATS_PATH`. Pin one physical socket and set\n`OMP_NUM_THREADS`, `OMP_PLACES=cores`, and `OMP_PROC_BIND=close` explicitly so\nNUMA or SMT movement cannot masquerade as a tile result.\n\nOne 32-element K block is already the NativeVNNI SIMD\u002Fdecode unit. Do not round\ncache tiles to a larger block multiple unless annotated assembly and repeated\nmeasurements prove a real alignment requirement; odd tile lengths are valid\nand can win. Likewise, do not assume one residency regime fits every M: shallow\ngrouped verification and deeper prefill may have materially different reuse.\n\nEvery cache-policy change must keep the AVX-512 and forced-AVX2\n`V2_Integration_CPU_NativeVNNI_PrefillCacheKTile_*` gates green. Those gates\ncompare every K-tiled production result byte-for-byte with independent serial\nrows across all formats, odd\u002Feven M values, tail N, and tile boundaries. A\nfaster tile that changes FP parenthesization is ineligible.\n\n## 5. Tune one bottleneck at a time\n\nApply changes in this order and remeasure after each one:\n\n1. Fix placement, oversubscription, and work partitioning. Do not tune SIMD\n   around a bad NUMA or OpenMP configuration.\n2. Remove hot-path allocations, packing, conversions, and redundant passes.\n3. Improve cache reuse and first-touch locality. Initialize allocations of at\n   least 128 KiB in parallel on the workers that will consume them.\n4. Reduce barriers and imbalance while preserving required phase ordering.\n5. Improve SIMD instruction-level parallelism, interleave independent\n   loads\u002Faccumulators, and prefetch only when counters prove it helps.\n6. Reduce vector-register live ranges when annotation proves spills or shuffle\n   pressure. Prefer bounded load\u002Fdecode\u002Fuse tiles and multiple independent\n   accumulators; more unrolling is not automatically faster.\n7. Keep vectorized tail handling explicit: AVX-512, AVX2, narrower vectors,\n   then scalar. Validate every tail and runtime ISA route.\n\nUse the nested-safe worksharing form:\n\n```cpp\nauto work = [&]() {\n    #pragma omp for schedule(static)\n    for (int64_t i = 0; i \u003C count; ++i) {\n        output[i] = compute(input[i]);\n    }\n};\nOMP_WORKSHARE_REGION(work);\n```\n\nUse `OMP_WORKSHARE_REGION_SYNC` only when the caller needs an explicit barrier,\n`OMP_WORKSHARE_REGION_IF` for measured size thresholds, and `OMP_SINGLE` for\nsingle-worker work such as an MPI collective. Keep thread-local storage inside\nthe work lambda so nested and top-level execution have identical ownership.\n\n## 6. Validate correctness, dispatch, and economy\n\nBefore accepting a change:\n\n1. Run the focused correctness\u002Fintegration test for the kernel and add a\n   regression for every defect discovered during tuning.\n2. Sweep every supported tensor format\u002Fcodebook, representative `(M,N,K)`\n   geometries, all required M values, AVX2 and AVX-512 build\u002Fruntime regimes,\n   tails, and every positive thread count required by dispatch totality.\n3. Run the focused performance binary without `perf` and prove improvement\n   beyond its noise band.\n4. Run the production `Release` benchmark with normal MPI bootstrap and the\n   fixed prompt; confirm the relevant prefill\u002Fdecode throughput improves.\n5. Inspect PerfStats\u002Froute counters and prove the intended optimized kernel and\n   ISA path actually executed.\n6. Retain the exact command, binary\u002Fbuild identity, topology, raw counters,\n   samples, and parity result. Do not commit `perf.data` or local result\n   directories.\n\nAccept the change only when correctness and production economy pass together.\nDo not retain a serial fallback, an exact-shape-only shortcut, or an\nuneconomical generic path to hide a failed tuning candidate.\n","# CPU Kernel Profiling and Tuning\n\nUse an evidence-driven loop: establish the production baseline, isolate one\nkernel and geometry, collect counters without contaminating canonical timing,\ninspect the hot instructions, change one hypothesis, then repeat the focused\nand end-to-end correctness\u002Feconomy gates.\n\n## Preserve the execution contract\n\n- Keep hot-path state host-owned and persistent. Do not add allocation,\n  repacking, format conversion, or topology changes to make an isolated kernel\n  look faster.\n- Preserve the production arithmetic order. Grouped verifier rows must remain\n  byte-identical to serial M=1 decode for every supported format and positive\n  thread count.\n- Use physical cores as the default worker budget. Treat SMT, cross-socket\n  placement, and nested BLAS\u002FOpenMP teams as separate, explicitly measured\n  modes.\n- Use `OMP_WORKSHARE_REGION` and its companion macros from\n  `src\u002Fv2\u002Futils\u002FOpenMPUtils.h`; do not create an unconditional nested\n  `#pragma omp parallel` region inside a kernel.\n- Keep profiler collection separate from canonical latency samples. Never use\n  `perf` overhead, sampling runs, or hardware-counter collection as dispatch\n  labels.\n- For NativeVNNI corpus collection, policy fitting, certification, or install,\n  also read [nativevnni-gemm-tuning](..\u002Fnativevnni-gemm-tuning\u002FSKILL.md). Its\n  trainer-owned `perf_event_open` protocol is the production evidence\n  authority; use its existing collector\u002Fdriver rather than inventing profiler\n  environment variables. The system-wide `perf` workflow below is for\n  diagnosis.\n\n## 1. Define one exact experiment\n\nRecord all dimensions that can change the result:\n\n- binary digest and `Release` or `Integration` build type;\n- compiled ISA (`LLAMINAR_CPU_ISA=AVX2` or `AVX512`) and runtime ISA route;\n- socket, NUMA node, physical CPU list, and OpenMP team size;\n- tensor format\u002Fcodebook, serial M=1 versus grouped-verifier operation,\n  `(M,N,K)`, and candidate;\n- warmup count, sample count, prompt hash, and execution mode.\n\nInspect topology before choosing a CPU list:\n\n```bash\nlscpu -e=CPU,CORE,SOCKET,NODE,ONLINE\nnumactl --hardware\n```\n\nDo not assume that logical CPUs `0-N` are one physical socket. Derive a\nphysical-core list from the actual host and use the same list for both\n`taskset` and `perf -C`.\n\nBuild and measure the production baseline without profiler-only flags:\n\n```bash\ncmake -B build_v2_release -S src\u002Fv2 -G Ninja \\\n  -DCMAKE_BUILD_TYPE=Release -DLLAMINAR_CPU_ISA=AVX512\ncmake --build build_v2_release --parallel\n\n.\u002Fbuild_v2_release\u002Fllaminar2 benchmark -m \u003Cmodel>.gguf -d cpu:0 \\\n  --prompt-file \u003Cfixed-prompt.txt>\n```\n\nRun enough clean repetitions to establish a noise band. Canonical benchmarks\nretain normal MPI bootstrap, pinning, and NUMA setup. A change inside the noise\nband is not a win.\n\nUse explicit PerfStats output to prove the production route and host phases:\n\n```bash\nLLAMINAR_PERF_STATS_JSON=\u002Ftmp\u002Fllaminar-cpu-perfstats.json \\\nLLAMINAR_PERF_STATS_SUMMARY=1 \\\n.\u002Fbuild_v2_release\u002Fllaminar2 benchmark -m \u003Cmodel>.gguf -d cpu:0 \\\n  --prompt-file \u003Cfixed-prompt.txt>\n```\n\n`LLAMINAR_PROFILING=1` is a deprecated compatibility alias. Do not use it to\nchange execution topology, and do not treat the legacy\n`LLAMINAR_PROFILE_KERNELS=1` table as whole-model attribution.\n\nPrefer a focused performance binary under\n`tests\u002Fv2\u002Fperformance\u002Fkernels\u002Fcpu\u002F` for iteration. Representative targets\ninclude:\n\n```bash\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_native_vnni_thread_scaling\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_flash_attention_sweep\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_cpu_flash_attention_tile_tournament\ncmake --build build_v2_release --parallel --target \\\n  v2_perf_gemm_tuning_sweep\n```\n\nSearch `tests\u002Fv2\u002FCMakeLists.txt` for the exact target that owns the kernel; do\nnot profile a neighboring proxy when the production-shaped harness exists.\n\n### CPU FlashAttention cache-tile policy\n\nCPU FA2 keeps arithmetic and cache blocking separate. The shared scheduler in\n`CPUFlashAttentionKernelT.h` always forms canonical 256-row online-softmax\nsummaries and merges them in ascending K\u002FV order. A physical K\u002FV tile may alter\nwhich rows stream through private cache in one callback, but it must never alter\nscore indexing, four-row vector groups, summary boundaries, or output bytes.\nDo not install a tile optimization that couples those two policies again.\n\nBuild and certify AVX2 and AVX-512 independently with Release code generation:\n\n```bash\ncmake -B build_v2_release_avx2 -S src\u002Fv2 -G Ninja \\\n  -DCMAKE_BUILD_TYPE=Release -DLLAMINAR_CPU_ISA=AVX2\ncmake --build build_v2_release_avx2 --parallel --target \\\n  v2_perf_cpu_flash_attention_tile_tournament\n\npython tests\u002Fv2\u002Fperformance\u002Fkernels\u002Fcpu\u002Fattention\u002Frun_cpu_fa2_tile_tournament.py \\\n  --binary build_v2_release_avx2\u002Ftests\u002Fv2\u002Fv2_perf_cpu_flash_attention_tile_tournament \\\n  --family-repeats 3 --max-p95-regret 5\n```\n\nRepeat with `-DLLAMINAR_CPU_ISA=AVX512` and a distinct AVX-512 build directory.\nAlso run that AVX-512 binary with `LLAMINAR_ISA_LEVEL=avx2`; compiler code\ngeneration and runtime algorithm dispatch are independent measured axes, and\nthe mixed regime must not reuse AVX2-only evidence implicitly. Tournament CSV\nand summaries must name both `codegen_isa` and `runtime_isa`.\n\nThe driver selects one hardware thread per physical core on one socket, runs\neach `(native K\u002FV format, head dimension)` family in a fresh process, and takes\nthe median domain regret across fresh-process repeats. Its complete compact\nmatrix is nine native K\u002FV pairings, head dimensions 64\u002F128\u002F256, decode M=1,\ngrouped M=15, prefill M=128, and all seven compiled physical tiles. Every\ncandidate is byte-authenticated through the production kernel before timing;\nmissing candidates, mixed code-generation\u002Fruntime ISA profiles, malformed\nevidence, and byte mismatches are fatal. Use `--cpu-list` when topology or\ngovernor control requires an explicit socket.\n\nFor one isolated profiler experiment, filter the C++ worker directly with\n`LLAMINAR_CPU_FA2_TOURNAMENT_FORMAT`, `_HEAD_DIM`, `_M`, `_KV`, and `_TILE`.\nSet `_SAMPLES` to a complete forward\u002Freverse candidate-cycle count, keep\n`_WARMUP` outside timing, and use `_COLD=1` only for an explicitly cold-cache\nquestion. One `_TILE` worker is profiler evidence, not a regret certificate.\nKeep the all-tile integration regressions and the process-isolated policy gate\ngreen after any scheduler, codec, cache rule, or SIMD change.\n\n## 2. Prepare Linux perf safely\n\nCheck counter access and available events first:\n\n```bash\nsysctl kernel.perf_event_paranoid\nperf list\n```\n\nIf access is denied, change `kernel.perf_event_paranoid` only with authorization\nbecause it is host-wide. Record the current value, temporarily enable access\nwith `sudo sysctl -w kernel.perf_event_paranoid=-1`, and restore the recorded\nvalue after collection.\n\nUse two attachment patterns:\n\n1. Profile standalone test\u002Fperformance binaries directly. They do not MPI\n   bootstrap, so do not pass `--no-mpi-bootstrap`.\n2. When profiling `llaminar2` directly, pass `--no-mpi-bootstrap` so `perf`\n   attaches to the compute process instead of the `mpirun` wrapper. Pin the\n   selected CPUs and set the OpenMP policy explicitly. This mode is diagnostic\n   only because it does not reproduce the full bootstrap placement contract.\n\nCapture all worker activity unambiguously with system-wide collection limited\nto the pinned physical CPUs:\n\n```bash\nperf stat -a -C \u003Cphysical-core-list> \\\n  -e cycles,instructions,branches,branch-misses,cache-references,cache-misses \\\n  -- taskset -c \u003Cphysical-core-list> \\\n  env OMP_NUM_THREADS=\u003Cphysical-core-count> OMP_PLACES=cores OMP_PROC_BIND=close \\\n  .\u002Fbuild_v2_release\u002Fllaminar2 benchmark --no-mpi-bootstrap \\\n    -d cpu:0 -m \u003Cmodel>.gguf --prompt-file \u003Cfixed-prompt.txt>\n```\n\nNever report the wall time from this profiler-only invocation as the production\nbenchmark result.\n\n## 3. Use perf stat for counter evidence\n\nStart with portable counters, then add model-specific events that `perf list`\nconfirms are supported:\n\n```bash\nperf stat -r 5 -a -C \u003Cphysical-core-list> \\\n  -e cycles,instructions,branches,branch-misses,\\\nL1-dcache-loads,L1-dcache-load-misses,LLC-loads,LLC-load-misses \\\n  -- taskset -c \u003Cphysical-core-list> \u003Cfocused-perf-binary> \u003Cfocused-args>\n```\n\nReject multiplexed or unsupported counter sets rather than silently comparing\ndifferent evidence. Profile one exact kernel\u002FISA\u002Fshape\u002FM candidate per run.\n\nInterpret ratios in context, not as universal pass\u002Ffail constants:\n\n| Evidence | Likely interpretation | Next check |\n|---|---|---|\n| Low IPC with high LLC\u002FDRAM traffic | memory or NUMA limited | placement, first touch, bytes per logical work |\n| Low IPC with low cache traffic | dependency, branch, barrier, or front-end stalls | sampled hotspot and annotated ISA |\n| High branch-miss rate | irregular dispatch or hot-loop control flow | split aligned and boundary paths |\n| High instructions per logical work | excess decode, shuffle, reduction, or bookkeeping | instruction census against the baseline |\n| More threads but flat throughput | barriers, false sharing, bandwidth, or too little work per worker | physical-core scaling and `libgomp` samples |\n\nFor VNNI kernels, calculate IPC, instructions per logical MAC, cache traffic per\npayload byte, and speedup across one thread through the physical cores per\nsocket. Raw miss counts alone are misleading when candidates execute different\namounts of work.\n\n## 4. Find and annotate the hotspot\n\nWrite profiler artifacts outside the repository:\n\n```bash\nperf record -o \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  -a -C \u003Cphysical-core-list> -F 997 --call-graph fp \\\n  -- taskset -c \u003Cphysical-core-list> \u003Cfocused-perf-binary> \u003Cfocused-args>\n\nperf report -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --no-children --sort=dso,symbol\nperf report -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --no-children --stdio --sort=symbol\nperf annotate -i \u002Ftmp\u002Fllaminar-cpu.perf.data \\\n  --symbol='\u003Chot-symbol>' --stdio\n```\n\nUse `--call-graph fp` only when the binary was compiled with frame pointers.\nFor a profiling-only optimized build, add `-fno-omit-frame-pointer` to the\n`Integration` C\u002FC++ flags and keep its timings separate from the canonical\n`Release` baseline. If exact production code generation matters more than call\nstacks, profile the `Release` binary with an unwinder supported by the host and\nquantify lost samples before trusting the call graph.\n\nIn annotated assembly, look for:\n\n- stack spill\u002Freload traffic from excessive live vector registers;\n- register-to-register ZMM\u002FYMM shuffles that crowd out dot-product work;\n- `vpdpbusd`\u002FVNNI or the intended AVX2 sequence on the production-selected\n  path;\n- hot loads with poor locality or cross-NUMA traffic;\n- time in `libgomp` barriers or `pause` rather than in the kernel;\n- scalar tails or boundary branches dominating small shapes.\n\nUse `objdump -dC -Mintel \u003Cbinary>` for a stable instruction census when sample\nannotation alone is ambiguous.\n\n### Classify spills by execution regime\n\nDo not treat a compiler spill count as either universally fatal or harmless.\nFirst delimit the actual inner loop by symbol address, branch targets, and\nsource annotation; prologue saves, scalar pointer slots, exception paths, and\nunreached ISA branches are not hot-loop vector spills. Build AVX2 and AVX-512\nseparately because an AVX-512 build can hide pressure in code that is meant to\nrepresent the 16-register AVX2 regime.\n\nFor compute-bound GEMM and grouped-verifier candidates, a vector spill in the\nK loop disqualifies the candidate. Keep a no-spill geometry available and\nreduce the live set by narrowing the N tile, decoding\u002Floading one subchunk at a\ntime, scoping broadcasts to their use, or disabling an unprofitable unroll.\nPreserve independent accumulator chains so removing a spill does not replace\nmemory traffic with a long dependency chain.\n\nA streaming GEMV candidate may retain measured spill traffic only when all of\nthe following are true:\n\n- counters establish that the domain is memory-bound rather than\n  front-end\u002Fcompute-bound;\n- a no-spill candidate for the same format, geometry, M, and ISA is measured in\n  the same tournament;\n- the spilling candidate wins canonical latency beyond the noise band and does\n  not increase bytes moved enough to lose at neighboring shapes;\n- byte-equivalence and thread\u002FISA totality gates pass.\n\nNever infer that a spill is acceptable merely because one memory-bound Q6\nshape tolerated it. Candidate evidence is domain-specific, and spilling\nvariants must not be eligible in compute-bound dispatch domains.\n\n### Keep compact-format ILP while shortening decode live ranges\n\nCompact formats such as Q6_K can need more decode state than nibble-LUT or\nexpanded-INT8 formats. When grouped M=2 work is under-filled, first widen the\ncolumn span so one worker owns enough independent dot products; do not create\ntwo separate row launches. Then reduce register pressure inside that wider\ntile without collapsing its independent accumulator chains:\n\n- inspect the generated K loop itself, not prologue saves or cold scalar\n  branches, before classifying a spill;\n- load, decode, consume, and retire one low\u002Fhigh bitplane group before decoding\n  the next group;\n- combine disjoint bitplanes with masked integer adds when that removes a\n  longer merge\u002Fshuffle sequence and preserves the exact decoded bytes;\n- use the narrowest VNNI width that matches auxiliary reductions such as a\n  half-block activation sum, instead of keeping unnecessary ZMM constants live;\n- keep one accumulator per output row and column vector, and visit K blocks in\n  the same ascending order as serial M=1 decode.\n\nThe acceptance gate is simultaneous: byte equality against independent serial\nrows across the all-format\u002Fruntime-M sweep, no hot-loop spill for a\ncompute-bound candidate, and a repeated latency win over serial decode. A\nlower register count that loses cross-row reuse or changes FP accumulation is\nnot an optimization.\n\n### Tune NativeVNNI cache tiles from the prepared execution layout\n\nCache policy must model the bytes consumed by the production kernel, not the\ncompact source GGUF block. Use `NativeVNNIPreparedFootprint` and include all\nlive data owned by one physical microkernel tile:\n\n- the exact interleaved weight stride, including compensation, scales, and\n  optional minima;\n- the Q8 activation blocks for every simultaneously live physical row;\n- the FP32 output chunks that remain live while K is accumulated;\n- the prepared encoding and asymmetry, because nibble decode, expanded INT8,\n  and native dual-scale Q6 have different reuse\u002Fcompute balances.\n\nDerive capacity and associativity from `CacheInfo`, reserve explicit\nassociativity headroom, and keep the residency fraction a typed, testable\npolicy. Unit tests must inject synthetic cache topologies and assert exact\nblock counts for every physical prepared encoding. Do not use a guessed source\nbytes-per-weight ratio or let a benchmark-host cache size become a constant.\n\nTreat cache residency as a tournament parameter, not as a folklore percentage:\n\n1. Cover symmetric\u002Fasymmetric nibble, symmetric\u002Fasymmetric expanded INT8, and\n   native Q6. Source codebooks that map to the same prepared encoding still\n   belong in the final all-format correctness sweep.\n2. Measure grouped depths on both sides of any proposed mode transition and\n   include representative attention, FFN, and terminal-head geometries.\n3. Interleave candidates in rotating order. Bracket the automatic candidate\n   above and below, retain adjacent odd block counts, and include full K. A\n   tournament that only searches one side of a changed default cannot report\n   honest regret.\n4. Enclose one additional warmed production launch for one exact\n   `(format, ISA, M, N, K, candidate)` in the process-owned perf interval.\n   Setup, quantization, correctness, warmup, other candidates, and canonical\n   timing must remain outside that interval.\n5. Prefer a candidate when lower wall time and cycles coincide with an\n   explanatory signal such as fewer L2\u002FLLC misses at similar instruction\n   count. A raw timing fluctuation without a mechanism is not enough to encode\n   a new generic policy.\n\nThe focused NativeVNNI cache-tile tournament is\n`v2_perf_cpu_native_vnni_dispatch_sweep`, test\n`CacheKTilesCoverAllPreparedFootprints`. Select geometry with\n`LLAMINAR_CPU_NVNNI_CACHE_TILE_M`, `_N`, and `_K`; select one exact profiler\nlaunch with `_FORMAT`, `_CANDIDATE`,\n`LLAMINAR_NATIVE_VNNI_PROFILE_REQUEST_ID`, and\n`LLAMINAR_NATIVE_VNNI_PERF_STATS_PATH`. Pin one physical socket and set\n`OMP_NUM_THREADS`, `OMP_PLACES=cores`, and `OMP_PROC_BIND=close` explicitly so\nNUMA or SMT movement cannot masquerade as a tile result.\n\nOne 32-element K block is already the NativeVNNI SIMD\u002Fdecode unit. Do not round\ncache tiles to a larger block multiple unless annotated assembly and repeated\nmeasurements prove a real alignment requirement; odd tile lengths are valid\nand can win. Likewise, do not assume one residency regime fits every M: shallow\ngrouped verification and deeper prefill may have materially different reuse.\n\nEvery cache-policy change must keep the AVX-512 and forced-AVX2\n`V2_Integration_CPU_NativeVNNI_PrefillCacheKTile_*` gates green. Those gates\ncompare every K-tiled production result byte-for-byte with independent serial\nrows across all formats, odd\u002Feven M values, tail N, and tile boundaries. A\nfaster tile that changes FP parenthesization is ineligible.\n\n## 5. Tune one bottleneck at a time\n\nApply changes in this order and remeasure after each one:\n\n1. Fix placement, oversubscription, and work partitioning. Do not tune SIMD\n   around a bad NUMA or OpenMP configuration.\n2. Remove hot-path allocations, packing, conversions, and redundant passes.\n3. Improve cache reuse and first-touch locality. Initialize allocations of at\n   least 128 KiB in parallel on the workers that will consume them.\n4. Reduce barriers and imbalance while preserving required phase ordering.\n5. Improve SIMD instruction-level parallelism, interleave independent\n   loads\u002Faccumulators, and prefetch only when counters prove it helps.\n6. Reduce vector-register live ranges when annotation proves spills or shuffle\n   pressure. Prefer bounded load\u002Fdecode\u002Fuse tiles and multiple independent\n   accumulators; more unrolling is not automatically faster.\n7. Keep vectorized tail handling explicit: AVX-512, AVX2, narrower vectors,\n   then scalar. Validate every tail and runtime ISA route.\n\nUse the nested-safe worksharing form:\n\n```cpp\nauto work = [&]() {\n    #pragma omp for schedule(static)\n    for (int64_t i = 0; i \u003C count; ++i) {\n        output[i] = compute(input[i]);\n    }\n};\nOMP_WORKSHARE_REGION(work);\n```\n\nUse `OMP_WORKSHARE_REGION_SYNC` only when the caller needs an explicit barrier,\n`OMP_WORKSHARE_REGION_IF` for measured size thresholds, and `OMP_SINGLE` for\nsingle-worker work such as an MPI collective. Keep thread-local storage inside\nthe work lambda so nested and top-level execution have identical ownership.\n\n## 6. Validate correctness, dispatch, and economy\n\nBefore accepting a change:\n\n1. Run the focused correctness\u002Fintegration test for the kernel and add a\n   regression for every defect discovered during tuning.\n2. Sweep every supported tensor format\u002Fcodebook, representative `(M,N,K)`\n   geometries, all required M values, AVX2 and AVX-512 build\u002Fruntime regimes,\n   tails, and every positive thread count required by dispatch totality.\n3. Run the focused performance binary without `perf` and prove improvement\n   beyond its noise band.\n4. Run the production `Release` benchmark with normal MPI bootstrap and the\n   fixed prompt; confirm the relevant prefill\u002Fdecode throughput improves.\n5. Inspect PerfStats\u002Froute counters and prove the intended optimized kernel and\n   ISA path actually executed.\n6. Retain the exact command, binary\u002Fbuild identity, topology, raw counters,\n   samples, and parity result. Do not commit `perf.data` or local result\n   directories.\n\nAccept the change only when correctness and production economy pass together.\nDo not retain a serial fallback, an exact-shape-only shortcut, or an\nuneconomical generic path to hide a failed tuning candidate.\n",{"name":5,"description":7},"master","454741b1b2228bc6874e46ade75bbf523a8385d5",".agents\u002Fcpu-tuning",4,"https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar","https:\u002F\u002Fllaminar.ai","https:\u002F\u002Fgithub.com\u002FLlaminar","Home of the Llaminar inferencing engine.","2026-11-15 04:04:16",{"source":8,"skillName":5,"commands":53,"prompt":63,"zipAvailable":64},[54,57,60],{"tool":55,"command":56},"npx","npx skills add Llaminar\u002Fllaminar --skill cpu-tuning",{"tool":58,"command":59},"bunx","bunx skills add Llaminar\u002Fllaminar --skill cpu-tuning",{"tool":61,"command":62},"pnpm","pnpm dlx skills add Llaminar\u002Fllaminar --skill cpu-tuning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.agents\u002Fcpu-tuning\u002FSKILL.md",true,[66],{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"agents\u002Fopenai.yaml","REFERENCE","参考文档",251,"https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.agents\u002Fcpu-tuning\u002Fagents\u002Fopenai.yaml",[73,81,89,99,104,109],{"skillNo":74,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":76,"categories":77,"keywords":78,"publishedAt":38},"01M718P9ZZSG781K5PXM1V3KG2","rocm-tuning","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Frocm-tuning\u002FSKILL.md",[],[79,18,80],"rocm tuning","rocm",{"skillNo":82,"name":83,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":38},"01M718P95WX88GYN9MTSC6AE40","mtp-tuning","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fmtp-tuning\u002FSKILL.md",[],[87,18,88],"mtp tuning","mtp",{"skillNo":90,"name":91,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":38},"01M718P7JK26A3N6VZYSE2J36T","cuda-kernel-profiling","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fcuda-kernel-profiling\u002FSKILL.md",[],[95,96,97,98],"profiling","cuda kernel profiling","cuda","kernel",{"skillNo":100,"name":5,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":103,"publishedAt":38},"01M718P5YCB9J40NZZ0PRAKS5V","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.codex\u002Fskills\u002Fcpu-tuning\u002FSKILL.md",[],[19,20,18],{"skillNo":105,"name":75,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":38},"01M718P57PZ4G3X1B24ZVWR2PQ","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Frocm-tuning\u002FSKILL.md",[],[79,18,80],{"skillNo":110,"name":111,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":9,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":6,"sourceHtmlUrl":112,"categories":113,"keywords":114,"publishedAt":38},"01M718P4GF2X3EHBTY7ZB1Q2T2","nativevnni-gemm-tuning","https:\u002F\u002Fgithub.com\u002FLlaminar\u002Fllaminar\u002Fblob\u002Fmaster\u002F.claude\u002Fskills\u002Fnativevnni-gemm-tuning\u002FSKILL.md",[],[18,115],"nativevnni gemm tuning"]