LuisaCompute icon indicating copy to clipboard operation
LuisaCompute copied to clipboard

Vulkan / HIP backend(s)

Open trsh opened this issue 2 years ago • 5 comments

Is your feature request related to a problem? Please describe. LuisaCompute can't operate on Linux + AMD GPU's

Describe the solution you'd like Vulkan / HIP backend(s) additionally to current ones

Describe alternatives you've considered Nope

Additional context Nope

trsh avatar Dec 29 '23 16:12 trsh

Hi, @trsh

Thanks for the feature request!

The Linux + AMD support is planned. However, developing a new backend might take months. We'll update this issue if any progress is made.

Mike-Leo-Smith avatar Dec 30 '23 07:12 Mike-Leo-Smith

@Mike-Leo-Smith webgpu would be a very exotic backend, covering also webs.

trsh avatar Jan 01 '24 09:01 trsh

@Mike-Leo-Smith webgpu would be a very exotic backend, covering also webs.

Thanks for the information!

WebGPU seems like a promising candidate. We'll investigate and see if it's possible to lower LuisaCompute's DSL and runtime features to it.

Mike-Leo-Smith avatar Jan 02 '24 16:01 Mike-Leo-Smith

Update: we plan to re-implement the IR (formerly in src/rust and src/ir). The new IR will be interconvertible with SPIR-V to support the Vulkan backend's code generation needs. This should also help other IR-level transformations, like automatic differentiation, by incorporating SPIRV-Opt's optimization passes.

Mike-Leo-Smith avatar Jan 27 '24 08:01 Mike-Leo-Smith

Vulkan backend is working in progress.

MaxwellGengYF avatar Feb 16 '24 02:02 MaxwellGengYF