feltor icon indicating copy to clipboard operation
feltor copied to clipboard

Add HIP backend for AMD GPUs

Open mwiesenberger opened this issue 7 months ago • 0 comments

Using HIP (AMD's answer to CUDA)

https://github.com/ROCm/hip

https://rocm.docs.amd.com/projects/HIP/en/latest/what_is_hip.html

we should be able to write a backend for AMD GPUs

This is because the existing CUDA code-base should be easily convertible to HIP (at least according to advertising for HIP) using their hipify tool https://rocm.docs.amd.com/projects/HIPIFY/en/amd-staging/index.html (It also seemingly supports cusparse)

There also is a re-implementation of thrust in HIP https://github.com/ROCm/rocm-libraries/tree/develop which should help with the device vector and memory management

I would expect this to be a straightforward task, the risks are of course that some details may take time to figure out or find support for.

mwiesenberger avatar Jun 30 '25 09:06 mwiesenberger