ROCm / rocALUTION

Next generation library for iterative sparse solvers for ROCm platform
https://rocm.docs.amd.com/projects/rocALUTION/en/latest/
MIT License
75 stars 39 forks source link

[Feature]: Optional HIP backend at run time #230

Open cgmb opened 2 months ago

cgmb commented 2 months ago

Suggestion Description

The HIP support in rocALUTION is currently optional at build time, but it would be preferable if it were optional at run time. For this, it would need to be possible to enable or disable the HIP support in rocALUTION without affecting librocalution.so.

Pushing the choice to run time would make it easy to package librocalution_hip.so separately. The dependencies for the HIP backend are quite large, so it's nice to allow users to skip installing them if not needed.

The librocalution_hip.so shared library would need to be loaded like a plugin with dlopen rather than being registered as DT_NEEDED (which occurs when librocalution_hip.so is linked into librocalution.so with target_link_libraries).

Operating System

No response

GPU

No response

ROCm Component

rocALUTION