compileiq-run-search
Use when composing the Search(...) call and calling .start(). Covers the four worker classes (MultiProcessWorker / IsoMultiProcessWorker / RayWorker / AsyncWorker) and when to pick each, SearchConfiguration sizing rules, dump_results checkpointing, tracker_config choice (Disabled / Loguru / MLflow),…
Install / Use
npx skills add NVIDIA/skills --skill compileiq-run-searchInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
Development & EngineeringSupported Platforms
Tags
Our assessment of compileiq-run-search
compileiq-run-search scores 94/100 on our quality scale, 509th of 4,722 Development & Engineering skills we index (top 11%).
Its SKILL.md is 9.8 KB long, well organised into 14 sections with 8 code examples: a thorough specification that gives an agent plenty to work with.
With 3,421 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so compileiq-run-search is actively maintained.
- It is released under the Apache-2.0 license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-27. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
compileiq-run-search compared with similar skills
All 4 of these similar skills score higher than compileiq-run-search; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| compileiq-run-search (this skill)by NVIDIA | 94 | 3.4k | 2mo ago | SKILL.md |
| taste-skillby Leonxlnx | 100 | 122.3k | 1d ago | CLAUDE.md |
| hyperframesby heygen-com | 100 | 91.5k | today | CLAUDE.md |
| ai-job-searchby ai-job-search-dev | 100 | 73.7k | today | CLAUDE.md |
| claude-howtoby luongnv89 | 100 | 47.6k | 7d ago | CLAUDE.md |
Frequently asked questions
- How do I install compileiq-run-search?
- Run
npx skills add NVIDIA/skills --skill compileiq-run-search. The install tabs above show the steps for each supported agent. - Which AI agents does compileiq-run-search work with?
- It is written for Universal, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is compileiq-run-search safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is Apache-2.0-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is compileiq-run-search still maintained?
- The repository was last updated about 2 months ago, so compileiq-run-search is actively maintained.
Skill content
View source on GitHubname: compileiq-run-search description: > Use when composing the Search(...) call and calling .start(). Covers the four worker classes (MultiProcessWorker / IsoMultiProcessWorker / RayWorker / AsyncWorker) and when to pick each, SearchConfiguration sizing rules, dump_results checkpointing, tracker_config choice (Disabled / Loguru / MLflow), num_workers/task_timeout semantics, and GPU clock locking for stable measurements. Triggers on "Search()", "tuner.start()", "pool_size", "num_workers", "task_timeout", "IsoMultiProcessWorker", "RayWorker", "dump_results", "MLflow", "GPU clocks". when_to_use: |
- About to instantiate Search() and call .start().
- Search converges too slow / too fast and the user is unsure how to size.
- Search is hanging on a few configs (need IsoMultiProcessWorker + timeout).
- Migrating from local to a Ray cluster. license: CC-BY-4.0 AND Apache-2.0 metadata: version: "1.2.0" author: CompileIQ Team compileiq@nvidia.com domain: compiler-optimization tags: [compileiq, cuda, ptxas, compiler-optimization, autotuning] allowed-tools: Bash Read paths: ["**/*.py"]
compileiq-run-search
After you have an objective function (from compileiq-author-objective) and
a search space (from compileiq-search-space), this skill helps you choose
the worker, size the configuration, and run the search safely.
When
- About to instantiate
Search(...)and call.start(). - Search is converging too fast or too slow and the user is unsure how to re-size pool/generations.
- Search hangs on individual configs and the worker doesn't kill them.
- Scaling out from one GPU to a Ray cluster.
Worker selection
Pass either a built-in WorkerTypes enum value or the worker class itself to
Search(worker_type=...):
from compileiq.types import WorkerTypes
from compileiq.worker import (
MultiProcessWorker, # default
IsoMultiProcessWorker, # spawns fresh process per task; kill-safe
RayWorker, # distributed
AsyncWorker, # asyncio for async def objectives
)
| Situation | Worker class | Why |
|---|---|---|
| GPU kernel that may hang, OOM, or leak CUDA context | IsoMultiProcessWorker | One fresh process per task; parent kills on task_timeout. Defaults to fork. (docs/workers.md) |
| Triton mixed example on Blackwell-class GPUs | WorkerTypes.ISOLATED + CIQ_PROCESS_MODE=spawn | Isolates each evaluation and avoids leaking illegal memory access state across runs. |
| Fast (<100ms), stateless objective | MultiProcessWorker (default) | Reuses a pool; lower overhead. Defaults to forkserver. |
| Multi-node / multi-GPU cluster | RayWorker | User must set up Ray cluster + install compileiq on every worker. Both num_workers and task_timeout are ignored. (docs/workers.md) |
| I/O-bound async def objective | AsyncWorker | Concurrency, not parallelism. Rare for GPU work. |
Default recommendation for compiler tuning of GPU kernels:
IsoMultiProcessWorker with task_timeout between 30s (small kernels) and
180s (large attention / XLA HLO).
SearchConfiguration sizing
Reference: compileiq/types.py:473-615. Defaults auto-derive; only set what
you must.
from compileiq.types import SearchConfiguration, ProblemType
config = SearchConfiguration(
problem_type=ProblemType.MIN, # MIN for latency; MAX for throughput
generations=10, # required, > 0
pool_size=15, # > 5; auto-derives if omitted
# num_objectives defaults to 1
# normalize defaults to False (set True for cross-GPU runs)
)
| Knob | Default | When to override |
|---|---|---|
| generations | required | 10 for initial exploration; 20-40 for a deep run. |
| pool_size | auto (≥32) | 15 for tiny spaces; 32 for ≥1k design points; 64-128 for ≥10k. |
| num_objectives | 1 | Must equal len(return_tuple) from the objective. |
| normalize | False | True when running across heterogeneous nodes or GPUs. |
The default engine, amber, owns its optimizer settings. Leave the
SearchConfiguration fields cull_size, mutate_rate, objective_weights,
and enable_large_fail_pool unset: they have no effect since CompileIQ 1.1, and
Search ignores them with a FutureWarning. Pass amber options
(mutation_probability, survivor_count, reference_direction_weights,
seed) through engine=EngineConfig(name="amber", options={...}) instead.
amber never repeats a candidate, so keep pool_size * generations well below
the number of distinct points in a small discrete space; otherwise start() ends
early with a SearchSpaceExhaustedWarning and returns the results so far.
Sanity rule of thumb: if pool_size * generations < 50, you are exploring,
not optimizing. If > 2000, you are probably overfitting to measurement noise
— compileiq-validate-result will earn its keep there.
Search(...) constructor — every relevant kwarg
from pathlib import Path
from compileiq.ciq import Search
from compileiq.search_spaces.compilers import PtxasSearchSpace
from compileiq.tracker import LoguruTrackerConfig
tuner = Search(
objective_function=objective,
search_space=PtxasSearchSpace(version="13.3", variant="att"),
search_config=config,
worker_type=IsoMultiProcessWorker, # or WorkerTypes.ISOLATED
tracker_config=LoguruTrackerConfig(sink="optimization.log"),
dump_results=Path("results.csv"), # ALWAYS set this
cache_folder=None, # default ~/.cache/compileiq
disable_progress_bar=False,
exit_on_failure=True,
debug=False,
)
Always set dump_results=Path(...). CSV is flushed every batch, so a crashed
or killed run leaves recoverable state.
start(...) semantics
results = tuner.start(num_workers=4, task_timeout=120)
num_workers: ignored by workers whererespects_num_workers=False(RayWorker,AsyncWorker); CompileIQ emits the warning"num_workers is not supported by <WorkerName>"(compileiq/ciq.py:449-451) so users recognize it.task_timeout: ignored wheresupports_timeout=False(RayWorker). Critical forIsoMultiProcessWorker— without it a hung config wedges that branch.- Returns a
SearchResult. Don't process inline; hand off tocompileiq-validate-result.
Tracker choice (one-line each)
from compileiq.tracker import DisabledTrackerConfig, LoguruTrackerConfig, MLflowTrackerConfig
DisabledTrackerConfig()— default, no overhead. Fine for one-off runs.LoguruTrackerConfig(sink="optimization.log", level="INFO")— recommended for serious campaigns. Negligible overhead.MLflowTrackerConfig(experiment_name="...", tracking_uri="...", run_name="...")— when integrating with ML Ops; creates a nested MLflow run per evaluation.
Sample before you search
Search.sample(n) returns n randomly sampled parameter dicts from the
search space without running the search. Use it to:
- Confirm the search space resolves at all (cheaper than the bootstrap
round-trip; uses the in-memory state of
Search). - Eyeball that the dicts have the keys your objective expects.
- Feed a single sample into the objective by hand to verify it runs.
sample = tuner.sample(1)[0]
print(sample)
print(objective(sample)) # should return a real float, not raise
GPU clock locking (operator-level)
Stable measurements need locked clocks, locked before tuner.start() and
reset after the search. Locking needs root privileges, so do not run these
commands yourself: show them to the user and ask them (or their cluster
admin) to run them as root, then confirm before starting the search.
# Run as root, before the search
nvidia-smi -pm 1
MAX_GPU=$(nvidia-smi --query-gpu=clocks.max.graphics --format=csv,noheader,nounits | head -1)
MAX_MEM=$(nvidia-smi --query-gpu=clocks.max.memory --format=csv,noheader,nounits | head -1)
nvidia-smi --lock-gpu-clocks=$MAX_GPU,$MAX_GPU --lock-memory-clocks=$MAX_MEM,$MAX_MEM
# Run as root, after the search
nvidia-smi --reset-gpu-clocks --reset-memory-clocks
Check the current state without privileges:
nvidia-smi --query-gpu=clocks.gr,clocks.max.graphics --format=csv.
If the user can't lock clocks (CI container, shared cluster), skip this and report the higher CV% to the validation skill so it knows to compensate.
Self-test
python scripts/smoke_search.py
Runs a 2-generation search on x**2 + y with MultiProcessWorker and
verifies results.get_best_result() returns a dict with score_1 and params.
Gotchas
- Forgetting
task_timeoutwithIsoMultiProcessWorkeris the most common reason a search hangs for hours. The worker will kill a stuck process but only aftertask_timeoutelapses. forkserverissues on some hosts manifest asEOFErroror "Broken pipe" on the first eval. SetCIQ_PROCESS_MODE=spawn.- Local workers don't assign GPUs.
MultiProcessWorkerandIsoMultiProcessWorkergive every worker process the same visible GPUs, sonum_workers > 1on a GPU-kernel objective makes evaluations share a GPU and skews the timings. On one GPU, keepnum_workers=1for timing-sensitive kernels. For several GPUs (one machine or many), useRayWorker, the only worker that schedules a GPU per task: calltuner.start(num_gpus=1)and read the assigned device fromCUDA_VISIBLE_DEVICES(orray.get_gpu_ids()) inside the objective, or write a custom worker (docs/workers.md). - Don't put GPU-clock lock calls inside the objective. They need root and are per-host operator setup, not per-eval.
Next
- After
.start()returns:compileiq-validate-result. - If something's wrong:
compileiq-debug.
Related Skills
taste-skill
122.3kAgent skills that give coding agents taste: art direction, reference images and a browser check instead of generic AI pages
hyperframes
91.5kOpen-source AI video editor: edit your own footage, or create and remake any video with Claude Code, Codex or the free Studio app. Write HTML, render MP4. By HeyGen.
ai-job-search
73.7kThe job search that runs on your machine. AI job application framework built on Claude Code: evaluate postings, tailor CVs, write cover letters, prep interviews. Fork it and own it.
claude-howto
47.6kA visual, example-driven guide to Claude Code — from basic concepts to advanced agents, with copy-paste templates that bring immediate value.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
