KernelVet
Diagnose. Migrate. Verify.
KernelVet is an open-source, terminal-native toolkit for AMD GPU developers. It
checks whether a machine can really run ROCm workloads, and helps move CUDA
projects to HIP using AMD's own tools. A command-line interface (kernelvet) and
a keyboard-driven terminal UI (kernelvet tui) share one engine.
KernelVet is an independent open-source community project. It is not affiliated with, sponsored by or endorsed by AMD, is not an AMD product, and is not a certification authority. Always confirm support questions against the live AMD ROCm documentation. See Disclaimer and trademarks.
What it does
| Area | What you get |
|---|---|
| Diagnose | Detects the OS, kernel, GPUs (amd-smi, rocminfo, sysfs), ROCm, the HIP compiler, the amdgpu driver, ROCm libraries and PyTorch. Then it compiles and runs a small HIP program on each GPU and runs real PyTorch tensor operations. |
| Compatibility | Checks the host against a dated snapshot of AMD's published compatibility data. Each check names the page its data came from. |
| Migrate | Scans a CUDA project, classifies every CUDA construct, scores readiness, plans the migration, converts it with AMD HIPIFY into a separate directory, audits the result, builds it with hipcc and runs its tests. |
| Benchmark | Times a HIP bandwidth kernel and PyTorch matmuls on the GPU. --profile runs the HIP benchmark under rocprofv3; its output is saved to --profile-dir, or by default to profiles/<timestamp> in the data directory. Results come only from real runs. |
| Report | Writes terminal, JSON, Markdown, self-contained HTML and SARIF (for findings). |
| TUI | Eight sections: Overview, Diagnose, GPU Devices, Compatibility, CUDA→HIP Migration, Benchmarks, Reports, Settings. Long tasks run in background workers. |
The honesty rules
KernelVet is built to never claim more than it observed.
-
Every check is PASS, WARNING, FAIL or SKIPPED.
-
Every check also records how it knows its result:
detected(static inspection),executed(code ran on the device),configured, ornone. -
If a tool is missing or there is no GPU, the check is SKIPPED and says why. It is never reported as PASS.
-
The overall status is:
- UNHEALTHY if any check fails.
- REVIEW REQUIRED if anything is a warning or was skipped.
- HEALTHY only if every check passed.
-
A CUDA migration goes through five separate verification stages:
- static conversion
- static audit
- compilation
- tests
- GPU validation
Passing one stage is never shown as passing a later one.
-
GPU validation passes only when the tests passed and at least one test ran on a detected AMD GPU. On a CPU-only machine it is reported as UNAVAILABLE.
-
Benchmarks are never estimated or simulated.
Install
You need Python 3.11 or newer. The tool itself runs anywhere, including CPU-only machines and macOS. On those machines the GPU checks simply report SKIPPED or UNAVAILABLE.
pipx install kernelvet
pipx installs the kernelvet command in its own
environment. uv tool install kernelvet does the same. Plain pip install kernelvet works inside a virtual environment; outside one, Homebrew Python and
recent Debian/Ubuntu refuse it with an "externally-managed-environment" error.
The latest main, before it is released:
pipx install "git+https://github.com/seyhunak/kernelvet.git"
From a checkout:
pip install -e ".[dev]"
KernelVet calls AMD's tools; it does not bundle them. Install whichever you need from ROCm:
rocminfoandamd-smi: detectionhipcc: the runtime probe, builds and benchmarkshipify-clangorhipify-perl: conversionrocprofv3: profiling
You never need root to run KernelVet.
Quick start
kernelvet doctor # short health summary with the top fixes
kernelvet diagnose -v # every check, with details
kernelvet diagnose --format json > diagnosis.json
kernelvet diagnose -o report.html # format inferred from the extension
kernelvet compatibility # static check against AMD's published data
kernelvet gpu list
kernelvet system info --torch
kernelvet tui
Migrating a CUDA project
kernelvet migrate analyze ./my-cuda-app # read-only classification + readiness score
kernelvet migrate plan ./my-cuda-app # dry run: what will happen, file by file
kernelvet migrate convert ./my-cuda-app -o ./my-cuda-app-hip
kernelvet migrate audit ./my-cuda-app-hip # leftover CUDA, risky patterns, file:line
kernelvet migrate build ./my-cuda-app-hip
kernelvet migrate test ./my-cuda-app-hip
kernelvet migrate report ./my-cuda-app-hip --format sarif -o findings.sarif
The analyzer sorts every finding into one of four categories:
AUTO_CONVERTIBLEREQUIRES_VERIFICATIONMANUAL_INTERVENTIONUNSUPPORTED
convert never modifies the CUDA project. It refuses an output directory that:
- is the source directory,
- is inside the source, or
- contains the source.
It also refuses a non-empty output directory unless you pass --force. Each
stage saves its state in <hip-project>/.kernelvet/, so later stages and
report can pick it up. This includes the full HIPIFY log in conversion.log.
build and test can run inside Docker:
kernelvet config set isolation docker
The container has no network and drops every Linux capability.
/dev/kfd and /dev/dri are passed through only for GPU runs.
Output and exit codes
- With
--format json, stdout contains only the JSON document. Progress goes to stderr, so piping intojqis safe. kernelvet schema diagnosis|compatibility|migration|benchmarkprints the JSON Schema of each report type.
| Exit code | Meaning |
|---|---|
| 0 | Healthy / stage passed |
| 1 | A failure was found |
| 2 | Usage error |
| 3 | Review required (warnings, skipped checks or unverified stages) |
| 4 | A required tool is unavailable (e.g. no HIPIFY installed) |
| 70 | Internal error |
Configuration
kernelvet config show prints the effective configuration. Settings are
resolved in this order:
- the defaults,
- the config file (
kernelvet config path, usually~/.config/kernelvet/config.toml), KERNELVET_<FIELD>environment variables.
kernelvet config set KEY VALUE changes one setting, for example
kernelvet config set isolation docker. An empty value resets the setting to
its default (kernelvet config set isolation ""). none clears a setting that
can be left unset, such as offload_arch.
KERNELVET_CONFIG_DIR and KERNELVET_DATA_DIR move the config and data
directories. History (SQLite) and saved reports live in the data directory.
Turn history off with history = false.
See examples/config.toml for every option.
Compatibility data
The bundled matrix is
src/kernelvet/compatibility/data/rocm_matrix.json.
- It was transcribed by hand from AMD's system-requirements page, compatibility-matrix page and release-history page.
- It records the ROCm version (10.1.0), the date it was retrieved, and every source URL.
- AMD's pages sometimes disagree with each other. Those conflicts are written
into the file's
notesinstead of being resolved silently. - A value earns PASS only if AMD lists it explicitly. Unlisted values are WARNING, and known incompatibilities are FAIL.
To use your own matrix, pass --matrix FILE or set compatibility_matrix.
What has and has not been verified
The test suite runs on CPU-only machines:
- It replays recorded command output through a fake command runner.
- It builds fake filesystem roots (
/sys,/opt/rocm,/etc/os-release) for each test. - The host fixtures in
tests/fixtures/host/were constructed to match the documented output formats. They were not recorded on real hardware; seetests/fixtures/host/README.md.
The tests in tests/integration/test_real_tools.py are skipped unless the
real tools are present. They are marked hipify (HIPIFY installed) and gpu
(AMD GPU present). Run them on a ROCm machine with:
pytest -m "gpu or hipify"
Bug reports with real rocminfo / amd-smi output are very welcome.
Documentation
License
Apache License 2.0. See LICENSE.
Disclaimer and trademarks
KernelVet is an independent, community-maintained open-source project. It is not affiliated with, sponsored by, or endorsed by Advanced Micro Devices, Inc. (AMD), and it is not an AMD product. Its results are not an official AMD statement of support or certification. For authoritative information, use the AMD ROCm documentation.
AMD, AMD ROCm, AMD Instinct, AMD CDNA, AMD RDNA and Radeon are trademarks of Advanced Micro Devices, Inc. CUDA is a trademark of NVIDIA Corporation. Other names are used for identification purposes only and may be trademarks of their respective owners. KernelVet uses these names only to say which hardware and software it works with. It does not use AMD logos.
Metadata
Release files for kernelvet 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| kernelvet-0.1.1.tar.gz | 135.6 kB | With provenance | Details for kernelvet-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| kernelvet-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for kernelvet-0.1.1-py3-none-any.whl |
Total release size: 273.4 kB
Release files / kernelvet-0.1.1.tar.gz
| Download URL | kernelvet-0.1.1.tar.gz |
|---|---|
| Size | 135.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6648653893be7bf132537c7b3feaa35264b174b4258396c2d78011df302802be
|
|
BLAKE2b-256 checksum How to use checksums |
471cc72cea90380208ca48ad7058d7989acff930190354ea4b647287a57d09a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logRelease files / kernelvet-0.1.1-py3-none-any.whl
| Download URL | kernelvet-0.1.1-py3-none-any.whl |
|---|---|
| Size | 137.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c8443ea16215cb8f7e7cdc6395a62f6daddff662c855eb97c3cf7b4c064d0c06
|
|
BLAKE2b-256 checksum How to use checksums |
fc1fca3cc3a88a6f3b6da90bc6f49a2ab32a59ed6f0cb9f5412f8d2d3be3e013
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logSecurity for kernelvet 0.1.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for kernelvet-0.1.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 19, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.