GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Quadrants 1.4.1 documentation
  • User guide
  • API Reference

This view

  • Original page
  • New address

GeezerVison is showing genesis-embodied-ai.github.io — Quadrants — Quadrants 1.4.1 documentation

Quadrants#

Quadrants is a high-performance parallel programming framework for GPU and CPU computing. Write Python-like code that compiles to optimized GPU kernels for CUDA, Metal, and Vulkan backends.

import quadrants as qd

qd.init(arch=qd.gpu)

@qd.kernel
def hello(a: qd.types.NDArray[qd.i32, 1]) -> None:
    for i in range(10):
        a[i] = i * 2

a = qd.ndarray(qd.i32, (10,))
hello(a)

Features#

  • Simple: annotate Python functions with @qd.kernel to run on GPU

  • Fast: automatic parallelization of top-level for loops across GPU threads

  • Portable: supports CUDA, Metal, AMD, and Vulkan backends

  • Flexible: ndarrays, fields, structs, atomics, shared memory

Quadrants

  • User guide
    • Getting started
    • Supported systems
    • Tensor types
    • Scalar tensors
    • Matrix and Vector
    • Advanced
    • Per-thread matrix and vector operations
    • Per-thread linear algebra
    • Tensors
    • Compound types
    • BufferView
    • qd.static
    • Sub-functions
    • Parallelization
    • Numpy and Torch interop
    • Shared Metal command queue (PyTorch MPS)
    • Automatic differentiation
    • GPU execution model
    • Atomics
    • Block primitives
    • Grid primitives
    • Math
    • Subgroup primitives
    • Register-resident tiles: Tile16x16 and Tile32x32
    • Algorithms
    • Performance
    • Fastcache
    • Graph
    • Streams
    • Performance Dispatch
    • qd.init options
    • Advanced: Unit testing
    • Kernel code coverage
    • Python features in kernel scope
    • Debug mode
    • Quirks
    • Troubleshooting
    • Optimization passes
    • Advanced: Contributing to quadrants
    • Advanced: Building the CUDA graph conditional fatbin
  • API Reference
    • quadrants
On this page
Show Source
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.