AnswerDotAI/gpu.cpp
A lightweight library for portable low-level GPU computation using WebGPU. observed · 2026-08-28
Health v2 · maintenance only
79/100
- Activity 98
- Release rhythm 66
- Longevity 58
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 825
- days_rel: 12
- days_push: 12
- n_releases_24m: 1
Adoption not part of the score
3984 stars · 199 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A lightweight, header-only C++20 library for portable low-level GPU compute built on Dawn's WebGPU implementation. It provides a minimal API for creating tensors, kernels, and dispatching compute shaders across Metal, Vulkan, and browsers.
Use cases
- run gpu compute kernels in c++
- portable webgpu compute across metal and vulkan
- write wgsl compute shaders with a thin c++ wrapper
- run gpu workloads in the browser via webassembly
- learn low-level gpu programming without heavy frameworks
When to choose
- you want a small, close-to-WebGPU C++ compute library with minimal abstraction
- you need the same GPU compute code to run natively and in browsers
- you prefer explicit WGSL shaders and control over resources
When to avoid
- you need high-level tensor operations or automatic differentiation like PyTorch or JAX
- you want graphics rendering rather than compute
- you need CUDA-specific features or NVIDIA-only optimizations
Facets
library · maturity active
gpu-computing developer-tools gpu-computing cross-platform developer-tools cpp browser wasm webgpu wgsl header-only dawn compute-shaders gpgpu macos linux
3 sources
- readme: https://github.com/AnswerDotAI/gpu.cpp · fetched 2026-08-28 · 2ec7ec572005
- homepage: https://gpucpp.answer.ai · fetched 2026-08-29 · db2c295c337c
- site_page: https://gpucpp.answer.ai/api/gpu_8h.html · fetched 2026-08-29 · 83f79be3cab0
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| AnswerDotAI/gpu.cpp | main | 79 |
For agents
markdown · JSON · MCP: product_card(name="AnswerDotAI/gpu.cpp")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem