Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/openaccel-lab/blob/main/README.md # openaccel-lab aien-dev/openaccel-lab Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `main` Branches Tags History `openaccel-lab / README.md` 79 lines ยท 4626 bytes Raw Blame History Rendered 1 # OpenAccel Lab 2 3 A vendor-neutral, execution-verified conformance and performance lab for accelerator kernels. 4 5 Each workload in `workloads/` has one float64 reference, a written tolerance contract and seeded 6 inputs that are byte-identical for every entrant. The entrants are **OpenCL C, Triton, HIP, CUDA 7 and Omega**. None of them referees the others. CI runs every entrant that a free GitHub runner can 8 host, judges it against the reference, and publishes the board: 9 10 **Board: https://aien-dev.github.io/openaccel-lab/** 11 12 Wrong kernels are part of the lab. Each of the six controls in `controls/` has one defect written 13 into every entrant: a GEMM that stops one term short, an exclusive scan where an inclusive one 14 belongs, a reduction that drops its last element, a softmax and an attention without the max 15 subtraction, and an int4 dequantiser without sign extension. The gate fails if any control passes 16 on any backend. 17 18 ## What the numbers mean 19 20 - **CI rows are CPU evidence.** On the runners, OpenCL runs on PoCL, Triton in its interpreter, HIP 21 on HIP-CPU and Omega as native AArch64. The CUDA source is compiled with nvcc but not run. Every 22 CI timing is labelled host CPU wall clock. These timings say nothing about GPU performance. 23 - **GPU rows are receipts.** They live in `receipts/`, each with its machine, driver, date and who 24 ran it. Rented-GPU rows imported from aien-dev/omega-gpu-bench are marked as imported. 25 - **Timings are distributions.** The board shows min / p10 / p25 / median / p75 / p90 / max and the 26 sample count. It never shows a mean. 27 - **Only PASS counts.** `COMPILED`, `NOT_RUN` and `NO_SOURCE` never count as passing. 28 29 ## Use it 30 31 ```sh 32 git clone https://github.com/aien-dev/openaccel-lab && cd openaccel-lab 33 sh tools/fetch.sh all # pinned omc, PoCL, HIP-CPU, hipify-perl; sha256-checked 34 export OCL_ICD_VENDORS=$PWD/.oal/icd TRITON_INTERPRET=1 35 bin/oal-gen vecadd --seed 1 > case.bin # one case, docs/CONTAINER.md 36 bin/oal-run opencl vecadd < case.bin > out.bin # one entrant, one case 37 bin/oal-check vecadd case.bin out.bin # one verdict line; exit 0 PASS, 1 FAIL 38 bin/oal-matrix --controls > results.jsonl # everything; docs/RESULTS.md 39 bin/oal-gate results.jsonl # exit 1 on any failure or passing control 40 bin/oal-shrink omega gemm_offbyone # smallest shape that still fails 41 ``` 42 43 Each tool does one job. Data goes to stdout, diagnostics to stderr, and exit codes mean what the 44 header of each tool says. To add a workload or an entrant, see `docs/AUTHORING.md`. The tolerance 45 rules, with their Wolfram checks, are in `docs/TOLERANCE.md`. 46 47 ## GPU runs 48 49 `runners/cuda/run_all.sh OUT.jsonl` runs the CUDA entrant of every workload on the local NVIDIA 50 GPU and labels the lines with the GPU, compute capability and driver. Rows from AMD and Intel GPUs 51 are welcome as receipts in the same format. 52 53 ## Limits 54 55 - HIP-CPU is archived upstream and does not implement every HIP feature. Workloads stay inside 56 what it supports (see `docs/AUTHORING.md`). 57 - The Triton interpreter checks semantics, not Triton's GPU code generation. 58 - The lab takes source code only. It never inspects or translates NVIDIA binaries, SASS or other 59 generated machine artifacts. 60 61 ## Connected repos 62 63 - [aien-dev/omega-gpu-bench](https://github.com/aien-dev/omega-gpu-bench) at ``be6e65ac``: rented-GPU receipts and their board. Its receipts are imported unchanged under `receipts/imported/`. 64 - [aien-dev/omega-kernel-template](https://github.com/aien-dev/omega-kernel-template) at ``23a04c9f``: the single-kernel Omega check on AArch64 and SPIR-V/PoCL. Its PoCL release asset is the lab's arm64 OpenCL runtime. 65 - [aien-dev/omega-mv](https://github.com/aien-dev/omega-mv) at ``369dbc96``: the Omega compiler used by the Omega entrant. 66 67 Pins are in `toolchain.lock`, and outside code is listed in `DEPENDENCIES.md`. License: Apache-2.0 with the LLVM exception ([LICENSE](LICENSE), [NOTICE](NOTICE)). 68 69 ## Human-Directed Agentic Engineering 70 71 Development follows Human-Directed Agentic Engineering (HDAE): humans define goals, architecture, 72 constraints, acceptance criteria, and stopping points; agents implement, execute checks, diagnose 73 failures, and revise within those boundaries. Human review retains responsibility for claims, 74 acceptance, and release decisions. 75 76 For the documented method and a systems-software case study, see Gregory M. Kurtzer, 77 [*Ginux: Building an Independent Kernel That Runs Linux Userspace through Human-Directed Agentic 78 Engineering* (2026)](https://doi.org/10.5281/zenodo.`23682548`). 79