← All projects
Project record1 mention
Originally shared on Hacker News

goldy

A GPU library written in Rust with backends for CUDA, DX12, Vulkan, and Metal (tenstorrent and wgpu planned) and bindings for rust-dynamic, Python, C++, C, and .NET (Java and Fortran planned). It uses the slang shader language exclusively, expresses all submissions as graphs that are automatically retained (sometimes partially via a graph partition algorithm), automatically synchronizes GPU resources, and recycles VRAM and device resources. It has no runtime dependencies (slang is vendored), a new shader calling convention using a virtual entry point that lets resources appear as arguments to shader 'main', and supports both GPGPU and graphics. Planned features include shader coroutines, Rust shader authoring, and automatic kernel fusion. It is the reference implementation of a new abstract machine for cooperative resource-oriented computation called the Fondaco machine.

Last shared
01 / The problem

What it addresses

Existing cross-backend GPU libraries typically target the lowest common denominator or specialize in either compute, graphics, or ML, and no one has described the machine model GPU programs actually target.

02 / Source history

Shared over time

Each entry reflects what was shared on that date. Details may have changed since then.

  1. goldy

    A GPU library written in Rust with backends for CUDA, DX12, Vulkan, and Metal (tenstorrent and wgpu planned) and bindings for rust-dynamic, Python, C++, C, and .NET (Java and Fortran planned). It uses the slang shader language exclusively, expresses all submissions as graphs that are automatically retained (sometimes partially via a graph partition algorithm), automatically synchronizes GPU resources, and recycles VRAM and device resources. It has no runtime dependencies (slang is vendored), a new shader calling convention using a virtual entry point that lets resources appear as arguments to shader 'main', and supports both GPGPU and graphics. Planned features include shader coroutines, Rust shader authoring, and automatic kernel fusion. It is the reference implementation of a new abstract machine for cooperative resource-oriented computation called the Fondaco machine.

    Problem: Existing cross-backend GPU libraries typically target the lowest common denominator or specialize in either compute, graphics, or ML, and no one has described the machine model GPU programs actually target.

    Posted by @mohamedkoubaa · Original source ↗

    Source text · @mohamedkoubaa · · Source ↗

    Working on goldy: https://github.com/koubaa/goldy A new kind of GPU library written in rust with backends for CUDA, DX12, Vulkan, and Metal (tenstorrent and wgpu are planned) and bindings for rust-dynamic, python, c++, c, and dotnet (Java and Fortran are planned).