Test local kerncap changes end-to-end by profiling an application, extracting a kernel, and validating the reproducer. Use when the user asks to test kerncap against any HIP or Triton workload, or wants to validate…
---
name: test-kerncap
description: Test local kerncap changes end-to-end by profiling an application, extracting a kernel, and validating the reproducer. Use when the user asks to test kerncap against any HIP or Triton workload, or wants to validate extraction on a real GPU application.
---
# Test kerncap Against an Application
Test local kerncap changes end-to-end by extracting and validating a kernel from any application.
## Parameters
| Parameter | Required | Description |
|-----------|----------|-------------|
| `app_cmd` | **Yes** | Full command to run the application (binary + arguments), e.g. `$WORK/dev/llama.cpp/build/bin/llama-bench -m model.gguf -p 512 -n 32` |
| `conda_env` | No | Conda environment to activate before running commands (e.g. `llama_cpp`). If not provided, use the current environment. |
| `kernel_name` | No | Name of the kernel to extract (e.g. `mul_mat_q`). If not provided, profile the application first and select the top kernel by execution time. |
## Paths
| Item | Path |
|------|------|
| kerncap source | `kerncap/` (relative to IntelliKit repo root) |
| Output directory | `/tmp/kerncap-test/<kernel_name>` |
## Environment Setup… install to load the full skill