algebra icon indicating copy to clipboard operation
algebra copied to clipboard

Hosting accel

Open jon-chuang opened this issue 5 years ago • 4 comments

Currently, CUDA support is provided by accel. However, current maintainer is not very responsive and repo is not condusive for dev. Thus, I self-host my own accel. However, this seems unsuitable. Hence I propose for accel to be hosted on arkworks. It is rust code (6k loc).

In the future, we would like to move to rust-gpu. This is because spir-v via WebGPU allows running on all platform GPUs, e.g. ARM Mali, Nvidia, Radeon, and Apple GPUs (with Metal API).

jon-chuang avatar Nov 17 '20 02:11 jon-chuang

Hmm sure. How far off is a backed based on rust-gpu?

Pratyush avatar Nov 17 '20 05:11 Pratyush

Also, given that you have your own fork of accel, how much work would it be to pare it down to just the parts that you use?

Pratyush avatar Nov 17 '20 05:11 Pratyush

Re rust-gpu, my guess is about a year.

Re pairing down, this can definitely be done, my rabbit out of hat guess is 3k loc.

jon-chuang avatar Nov 17 '20 05:11 jon-chuang

I think it would be a nice idea to reduce the amount of code in the accel fork; that would help with security audits and such, along with reducing the amount of unsafe code in dependencies.

Pratyush avatar Nov 17 '20 05:11 Pratyush