interplane.Get Omega
Read in your language

openaccel-lab

aien-dev/openaccel-lab

Brought by drakestapleton

branch main Branches Tags History

openaccel-lab / README.md

79 lines · 4626 bytes Raw Blame History Source

OpenAccel Lab

A vendor-neutral, execution-verified conformance and performance lab for accelerator kernels.

Each workload in workloads/ has one float64 reference, a written tolerance contract and seeded inputs that are byte-identical for every entrant. The entrants are **OpenCL C, Triton, HIP, CUDA and Omega**. None of them referees the others. CI runs every entrant that a free GitHub runner can host, judges it against the reference, and publishes the board:

Board: https://aien-dev.github.io/openaccel-lab/

Wrong kernels are part of the lab. Each of the six controls in controls/ has one defect written into every entrant: a GEMM that stops one term short, an exclusive scan where an inclusive one belongs, a reduction that drops its last element, a softmax and an attention without the max subtraction, and an int4 dequantiser without sign extension. The gate fails if any control passes on any backend.

What the numbers mean

Use it

git clone https://github.com/aien-dev/openaccel-lab && cd openaccel-lab
sh tools/fetch.sh all                # pinned omc, PoCL, HIP-CPU, hipify-perl; sha256-checked
export OCL_ICD_VENDORS=$PWD/.oal/icd TRITON_INTERPRET=1
bin/oal-gen vecadd --seed 1 > case.bin                 # one case, docs/CONTAINER.md
bin/oal-run opencl vecadd < case.bin > out.bin         # one entrant, one case
bin/oal-check vecadd case.bin out.bin                  # one verdict line; exit 0 PASS, 1 FAIL
bin/oal-matrix --controls > results.jsonl              # everything; docs/RESULTS.md
bin/oal-gate results.jsonl                             # exit 1 on any failure or passing control
bin/oal-shrink omega gemm_offbyone                     # smallest shape that still fails

Each tool does one job. Data goes to stdout, diagnostics to stderr, and exit codes mean what the header of each tool says. To add a workload or an entrant, see docs/AUTHORING.md. The tolerance rules, with their Wolfram checks, are in docs/TOLERANCE.md.

GPU runs

runners/cuda/run_all.sh OUT.jsonl runs the CUDA entrant of every workload on the local NVIDIA GPU and labels the lines with the GPU, compute capability and driver. Rows from AMD and Intel GPUs are welcome as receipts in the same format.

Limits

Connected repos

Pins are in toolchain.lock, and outside code is listed in DEPENDENCIES.md. License: Apache-2.0 with the LLVM exception (LICENSE, NOTICE).

Human-Directed Agentic Engineering

Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose failures, and revise within those boundaries. Human review retains responsibility for claims, acceptance, and release decisions.

For the documented method and a systems-software case study, see Gregory M. Kurtzer, [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic Engineering* (2026)](https://doi.org/10.5281/zenodo.23682548).