Add a New Runner or Accelerator Family¶
Every inference engine on AccelMark lives in a self-contained, content-hashed directory under runners/{platform}_{framework}_{hash8}/.
5 Steps to Add a Runner¶
- Subclass
BenchmarkRunnerinrunners/<tmp>/runner.pyimplementingload_model(),generate(), andrelease_resources(). - Compute the content hash (first 8 hex characters of SHA-256 of
runner.py): - Rename the folder to match the hash and write
meta.json(declarerunner_tier:"reference","optimized", or"experimental", plus supported suites). - Keep it clean (no vendoring): Import upstream packages via
requirements.txt— CI rejects PRs that vendor upstream engine source trees. - Validate locally before opening your PR:
Do not edit README.md
The README platforms matrix is auto-generated from runners/*/meta.json. Maintainers refresh it with python tools/generate_platforms_matrix.py.
For the full subclass API, precision resolution rules, and adding a brand-new hardware platform plugin (collect_env.py), see DEVELOPMENT.md and runners/README.md.