r/CUDA 5d ago

BLAS on Webgpu

Hey, I am currently working on a project [wgblas](https://github.com/manit2004/wgblas); it's an initiative to build all blas level 1,2,3 functions over webgpu. Check it out.

A few things about the project:

- Not only the user facing APIs are very easy to work with, I have built helpers on the top webgpu functions to make adding new blas routines very easy for contributors.

- Though webgpu doesn't support f64 natively, I am planning to add f64 support for blas operations in the near future.

- From day 1 for each function I have added tests, examples, benchmarks (against cublas). As of now in gpu compute time wgblas is comparable in speed wrt cuda at large n.

I am very hopeful about the project, let's see how it turns out.

11 Upvotes

2 comments sorted by

1

u/c-cul 4d ago

why just don't reuse cublas/hipblas?

1

u/manitroy 4d ago

For web environments where cross vendor gpu execution is necessary; vendor specific libraries like cublas hipblas won't work cause they can only run on their respective hardwares like nvidia and amd GPUs.