sarah-ek / faer-rs

Linear algebra foundation for the Rust programming language
https://faer-rs.github.io
MIT License
1.82k stars 61 forks source link

Consider `rust-gpu` when deciding on GPU support #123

Open LegNeato opened 6 months ago

LegNeato commented 6 months ago

Is your feature request related to a problem? Please describe. The roadmap mentions running on the GPU as a future goal. When faer is ready it should look at the nascent https://github.com/EmbarkStudios/rust-gpu to see if it can be leveraged.

Describe the solution you'd like Using https://github.com/EmbarkStudios/rust-gpu for the gpu portion.

Describe alternatives you've considered CUDA, glsl, etc.

sarah-ek commented 6 months ago

will keep an eye on it. im also considering compute shaders in wgpu and possibly cuda.

there's a lot of options so im gonna try to experiment a bit before deciding what to do

Makogan commented 3 months ago

Cudos for the rustgpu suggestion

janroden commented 2 months ago

There's also the quite new crate CubeCL, which is the GPU compute backend of Burn and lets you write kernels in Rust that are then optimized and compiled to CUDA or WebGPU (and Metal, ROCm, Vulkan, CPU SIMD are planned).

The goal of CubeCL is to ease the pain of writing highly optimized compute kernels that are portable across hardware. There is currently no adequate solution when you want optimal performance while still being multi-platform.