compileiq-bootstrap

द्वारा nvidia

एक नया CompileIQ प्रोजेक्ट शुरू करते समय, सॉकेट टाइमआउट होने पर, या कोई अन्य compileiq-* स्किल चलाने से पहले उपयोग करें। CUDA 13.3+, ptxas, GPU एक्सेस की पुष्टि करता है,…

npx skills add https://github.com/nvidia/compileiq --skill compileiq-bootstrap

compileiq-bootstrap

Validate that a host can run CompileIQ. No installation of system libraries (that's distro-specific and out of scope). No state files. Just a checklist that either passes or prints the precise next fix.

When

  • First-time setup on a new host or container.
  • Search().start() hangs on the first evaluation.
  • After upgrading CUDA, the compileiq wheel, or the Python venv.

Steps

1. CUDA toolkit 13.3+

CompileIQ's --apply-controls mechanism requires CUDA 13.3 or later (see examples/compilers/nvbench_example/optimize_reduction.py).

nvcc --version | grep -E "release (13\.([3-9]|[1-9][0-9])|(1[4-9]|[2-9][0-9])\.[0-9]+)"
ptxas --version | grep -E "V(13\.([3-9]|[1-9][0-9])|(1[4-9]|[2-9][0-9])\.[0-9]+)"

If either command exits non-zero, install or upgrade the CUDA toolkit and put /usr/local/cuda/bin on PATH and /usr/local/cuda/lib64 on LD_LIBRARY_PATH.

2. GPU is visible

nvidia-smi --query-gpu=name,compute_cap --format=csv

CompileIQ targets compute capability 9.0 (Hopper / H100) and 10.0 (Blackwell / B200) most aggressively, but works on any GPU PTXAS supports for the chosen arch.

3. CompileIQ imports resolve

One shot that covers everything callers will need:

python -c "
from compileiq.ciq import Search
from compileiq.types import INVALID_SCORE, BASELINE_CONFIG, WorkerTypes, ProblemType, SearchConfiguration
from compileiq.search_spaces.compilers import PtxasSearchSpace, NvccSearchSpace, LocalSearchSpaceBin
from compileiq.utils.helpers import save_compiler_config, load_compiler_config
from compileiq.worker import MultiProcessWorker, IsoMultiProcessWorker, RayWorker, AsyncWorker
print('imports OK')
"

If this fails, run pip install compileiq (or pip install -e . from a source checkout) and re-run.

4. Search-space resolution round-trip

This catches network or air-gapped issues that otherwise surface as hangs deep inside the first evaluation:

python -c "
from compileiq.search_spaces.compilers import PtxasSearchSpace
p = PtxasSearchSpace().retrieve()
assert p.exists() and p.stat().st_size > 0, p
print(f'resolved: {p}')
"

The first run downloads from GitHub releases and caches under ~/.cache/compileiq/<tag>/. Subsequent runs hit the cache.

5. Env vars to know

VariableDefaultWhat it controls
CIQ_KEEP_CACHEunset (0)Set to 1/true/yes to keep .cache files after a run for post-mortem replay.
CIQ_PROCESS_MODEforkserverforkserver, fork, or spawn. Switch to spawn if forkserver fails on a constrained host. IsoMultiProcessWorker defaults to fork regardless.
CIQ_SEARCH_SPACES_DIRunsetPath to a local mirror containing manifest.json plus the referenced .bin files. Set this on air-gapped hosts to skip network.
CIQ_SEARCH_SPACES_REPONVIDIA/CompileIQOverride the GitHub repo that release-backed search-space resolution queries. Useful for staging or forks.
CIQ_SS_TAG_PREFIXsearch-spaces-Tag prefix the resolver uses when tag="latest". Rarely needs changing.
CIQ_SS_LATEST_TTL_DAYS7Days to cache the tag that latest resolved to before re-checking GitHub. 0 re-resolves every run.

Self-test

bash scripts/check_env.sh

Exits 0 if every step passes. Exits with a non-zero count of failures and prints, for each failure, the precise command the user should run next.

Gotchas

  • If the first eval hangs:
    1. Mirror search spaces locally and set CIQ_SEARCH_SPACES_DIR=/path/to/mirror.
    2. If still hangs, switch process mode: CIQ_PROCESS_MODE=spawn.
  • Don't install system libraries in this skill. Distro-specific package installs need root and break in containers and on shared clusters. If nvcc, ptxas, or a Python interpreter is missing, surface the error and let the user decide how to install.

Next

  • For attention workloads: compileiq-search-space (variant="att" by default).
  • Before paying for a full search: try compileiq-booster-pack.
  • Writing an objective function: compileiq-author-objective.

nvidia की और Skills

accelerated-computing-cudf
nvidia
NVIDIA द्वारा आधिकारिक रूप से लिखित मार्गदर्शन NVIDIA cuDF GPU DataFrames, pandas त्वरण, dask-cuDF, ETL, जॉइन, ग्रुपबाय, CSV/Parquet I/O, नल करने योग्य शब्दार्थ, और…
accessibility
nvidia
स्थैतिक विश्लेषण, रनटाइम परीक्षण, ARIA पैटर्न, कीबोर्ड नेविगेशन और रंग कंट्रास्ट में एकीकृत एक्सेसिबिलिटी ऑडिटिंग वर्कफ़्लो। इस स्किल का उपयोग करें…
accessing-mlflow
nvidia
MLflow में संग्रहीत मूल्यांकन परिणामों को क्वेरी करें और ब्राउज़ करें। इसका उपयोग तब करें जब उपयोगकर्ता इनवोकेशन आईडी द्वारा रन खोजना चाहता है, मॉडलों के बीच मीट्रिक्स की तुलना करना चाहता है, आर्टिफैक्ट्स प्राप्त करना चाहता है…
add-binding-feature
nvidia
कोर रनटाइम और प्रभावित हर बाइंडिंग में एक सार्वजनिक NeMo Relay API सतह जोड़ें या बदलें।
add-middleware
nvidia
NeMo Relay मिडलवेयर पाइपलाइन में एक नया गार्डरेल या इंटरसेप्ट प्रकार जोड़ें
aicr-analyzing-snapshots
nvidia
AICR स्नैपशॉट YAML फ़ाइल का विश्लेषण करते समय, क्लस्टर स्थिति की समीक्षा करते समय, प्रदाता विशेषताओं की तुलना करते समय, GPU/नेटवर्क टोपोलॉजी अंतर्दृष्टि निकालते समय, या... उपयोग करें।
aicr-auditing-docs
nvidia
AICR के Markdown दस्तावेज़ों की समीक्षा करते समय उपयोग करें — डुप्लिकेशन, ड्रिफ्ट, ब्लोट और गैप्स के लिए — ताकि परियोजना के विकसित होने पर दस्तावेज़ उच्च-मूल्य बने रहें। "ऑडिट…" पर ट्रिगर होता है।
aicr-creating-guided-demos
nvidia
एक इंटरैक्टिव निर्देशित डेमो स्क्रिप्ट (demos/*.sh) तैयार करता है, लाइव या स्व-गति, Frame → Tell → Show → Close पैटर्न के साथ। "demo script", "guided… पर सक्रिय होता है।