Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

compileiq-debug

БесплатноЗапускает вложенные скриптыНе проверен

Use when something is wrong: Search() hangs, all evaluations return INVALID_SCORE, scores aren't improving, every config returns the same number, ptxas errors…

NVIDIAот NVIDIA★ 4 269 звёзд на GitHub

Об этом скилле

compileiq-debug

A symptom-indexed cheat sheet. Find the row that matches what the user is seeing, follow the first action, then dig into the matching detail section.

Symptom table

Symptom Most-likely cause First action
Search hangs on first eval Release fetch slow/blocked; OR forkserver issue CIQ_SEARCH_SPACES_DIR=<local mirror>; if still hangs, CIQ_PROCESS_MODE=spawn.
Engine 'amber' is not registered Frontend-only install (source checkout without the native runtime) pip install compileiq for a complete wheel; from a source checkout, git lfs pull && make install
FutureWarning: SearchConfiguration settings that have no effect since CompileIQ 1.1 are ignored SearchConfiguration(cull_size=..., mutate_rate=..., objective_weights=..., enable_large_fail_pool=False) The setting has no effect. Remove it, or pass the named amber option through EngineConfig(name="amber", options={...})
SearchSpaceExhaustedWarning (search ends early) or Unable to generate N unique candidates from ask() amber never repeats a candidate; the space is small or the search converged Lower pool_size or generations, or widen the search space
Every eval returns INVALID_SCORE Return-type mismatch (tuple vs scalar) / correctness gate / task_timeout too tight Search.sample(1) + call objective by hand; check num_objectives vs return shape; raise task_timeout
Every eval returns the same score ACF not reaching the compiler — framework cache is hiding it Apply Debug-pack O0 ACF by hand; if the score doesn't regress, fix cache-bust (TRITON_ALWAYS_COMPILE=1, HELION_SKIP_CACHE=1, fresh TRITON_CACHE_DIR, drop FlashInfer cubin packages)
TypeError: fromhex() … not dict Objective has no baseline branch: with normalize=True the first call passes BASELINE_CONFIG (an empty dict) Add the baseline-knockout branch (run without an ACF when config is an empty dict) and write ACFs with save_compiler_config(acf_path, config); see compileiq-author-objective
"not in expected format" Objective returned wrong shape num_objectives must equal len(return_tuple); scalar return only when num_objectives=1
Convergence stalled (best score flat) Pool too small for space; mutation too low; or kernel near-optimal Raise pool_size; raise amber's mutation_probability option; sample diversity with Search.sample(20)
Increasing invalid rate over generations Mutation arm spreading; compiler version drift mid-run CIQ_KEEP_CACHE=1, re-run, inspect failing configs offline
CV% > 10% on validation Unlocked clocks / thermal throttling / GPU contention Lock GPU + memory clocks; pin CUDA_VISIBLE_DEVICES; watch nvidia-smi dmon for thermals
Need to know why a winning ACF helps Profile with NCU See NCU section below

Details

Hang on first eval

Not BLAS. Do not send users to symlink libblas.so.

Current shipped binaries link only libm/libc/libstdc++/libgcc_s and do not require BLAS/LAPACK.

Real causes today, in order of frequency:

  1. Release-backed search-space fetch is slow or blocked. First call to PtxasSearchSpace().retrieve() downloads from github.com. On a corporate firewall this can stall. Pre-stage the mirror from a host that can reach GitHub (tags are dated, search-spaces-YYYY.MM.DD; there is no literal latest tag), then point CompileIQ at it:
    SS_TAG="$(gh release list -R NVIDIA/CompileIQ --limit 100 --json tagName,isDraft,isPrerelease \
      --jq '.[] | select(.isDraft == false and .isPrerelease == false) | select(.tagName | startswith("search-spaces-")) | .tagName' \
      | head -n 1)"
    gh release download "$SS_TAG" -R NVIDIA/CompileIQ -D /shared/mirror
    export CIQ_SEARCH_SPACES_DIR=/shared/mirror
    
    See compileiq-search-space for the full air-gapped setup.
  2. forkserver is unsupported on the host. Set CIQ_PROCESS_MODE=spawn. IsoMultiProcessWorker already uses fork by default.

Every eval returns INVALID_SCORE

Sanity-check the shape before assuming the worst:

sample = tuner.sample(1)[0]
score = objective(sample)
print(type(score), score)

Common shape mismatches:

  • num_objectives=1 but objective returns a tuple (latency,). Drop the trailing comma.
  • num_objectives=2 but objective returns a scalar.
  • Correctness gate is rejecting everything because the reference call itself is wrong.
  • task_timeout is shorter than a clean compile takes; raise it.

Every eval returns the SAME score

Almost always a framework cache serving a stale binary. Run the O0/O3 canary from the Debug pack to confirm — see compileiq-booster-pack for the exact test. If O0 doesn't regress vs baseline, the ACF is not reaching PTXAS. Fix:

Framework Cache-bust
Triton TRITON_ALWAYS_COMPILE=1 + unique TRITON_CACHE_DIR per eval
Helion `HELION_SKIP_CACHE
Полный SKILL.md на GitHub

Установить compileiq-debug в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Bash
Read

Вложенные файлы

BENCHMARK.mdevals/evals.jsonevals/files/results_rising_invalid.csvscripts/diagnose_csv.pyscripts/requirements.txtskill-card.mdskill.oms.sig

FAQ

Что делает скилл compileiq-debug?

Use when something is wrong: Search() hangs, all evaluations return INVALID_SCORE, scores aren't improving, every config returns the same number, ptxas errors fill the log, CV% is too high, or a winning ACF candidate needs NCU profiling to explain. Symptom-indexed table on top. Triggers on "compileiq hang", "socket timeout", "INVALID_SCORE", "not converging", "every score is the same", "TypeError fromhex", "ncu profile", "register spill", "ptxas error", "not in expected format", "high cv".

Как установить скилл compileiq-debug?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл compileiq-debug запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить compileiq-debug с