Skip to content

WGPU compute #823

Description

@kushalkolar

I thought I'd make an issue to pool together ideas and prototypes on general purpose compute with WGPU.

Performance summary:

  • We can achieve performance on-par with torch-cuda on sparse operations and on some dense operations (such as matrix-vector multiply).
  • Dense matrix-multiply will require using cooperative math in WGPU, I needs to look into it more. This will use tensor cores (on nvidia) and the equivalent hardware on other GPUs (including AMD and Mac AFAIK).
  • subgroup operations will help performance which should be coming to wgpu very soon.

Prototypes:

Easy things to try:

  • Benchmark tinygrad matmul, it might already use cooperative math.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions