# Zaneham/Booth

Open-source CUDA, Triton and HIP compiler targeting multiple GPU and CPU architectures.

Repository: https://github.com/Zaneham/Booth
Canonical: https://ross.abutalabs.com/products/booth
Language: C
License: Apache-2.0
License Family: permissive
Topics: c99, compiler, cuda, gpu, ml, triton, fortran, mlir-dialect
Last push: 2026-08-24T02:21:09+00:00

## Health v2 (maintenance only)
Score: 77/100 (v2, computed 2026-09-03T02:39:23.370411+00:00)
- activity 99, release rhythm 84, longevity 14
- inputs: {"age_days": 198, "days_push": 10, "days_rel": 25, "gap_med": 35.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1731, forks 92 (observed 2026-08-28T04:05:28.693185+00:00)

## What it is
Booth is an open-source compiler that takes CUDA C, HIP, or Triton kernel source and emits binaries for AMD RDNA 2/3/4 GPUs, NVIDIA PTX, Tenstorrent Metalium, RV32IM, or plain x86-64 CPUs without requiring LLVM. It also supports Fortran `do concurrent` kernels via LFortran and OCaml kernels type-checked by ocamlc.

## Use cases
- compile triton kernels to run on a cpu without a gpu
- compile cuda c to amd rdna binaries without nvcc
- run gpu kernels on machines with no gpu
- compile hip code for nvidia gpus
- write gpu kernels in ocaml with type checking
- compile fortran do concurrent kernels for gpus
- target tenstorrent hardware from cuda or triton source

## When to choose
- you need to run CUDA/Triton kernels on non-NVIDIA hardware like AMD RDNA or Tenstorrent
- you want to execute GPU kernels on CPU-only machines
- you want a dependency-free compiler binary for Linux, macOS, or Windows
- you want to write kernels in OCaml or Fortran with upfront type checking

## When to avoid
- you need full production parity with nvcc or ROCm feature sets and vendor support
- you rely on the latest CUDA libraries, cuDNN, or ecosystem tooling
- you need guaranteed performance parity with vendor compilers for your specific kernels

## Facets
- artifact type: cli-tool
- maturity: active
- function: compiler, gpu-computing, machine-learning, developer-tools
- domain: compilers, gpu-computing, machine-learning, developer-tools, programming-languages
- platform: windows, cli, cpp
- tags: cuda, triton, hip, mlir, amd-rdna, nvidia-ptx, tenstorrent, fortran, ocaml, risc-v, x86-64, kernel-compilation, linux, macos, gpu

## Member repositories
- Zaneham/Booth (main) score 77

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:05:28.693185+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T03:31:41.712314+00:00, confidence not recorded.
  - readme: https://github.com/Zaneham/Booth (fetched 2026-08-28T04:05:28.693185+00:00, sha cf275cf938b7)
- Data as of 2026-08-30T08:39:29.467469+00:00.
