Cyfra: Scala on GPU
summary
Cyfra is a Scala GPGPU framework that compiles plain Scala data structures and higher‑order functions to a GPU IR and runs on a Vulkan runtime with backends for AMD, NVIDIA, Apple and Intel. It exposes GFunction and GProgram/GExecution models, a GSequence abstraction, a GIO monad for mutable shader code and supports shared memory via SPIR‑V. Real projects include a ray tracer and an LLM inference engine that composes 200+ GPU programs and runs a 3B‑parameter LLaMA, beating TornadoVM by over 2x and trailing llama.cpp.
AI-written summary · about
