ROCm / rocALUTION

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

[Issue]: `rocalution-config.cmake` file attempts to find HIP even if rocALUTION was built w/o HIP support #247

Open juhanikataja opened 6 days ago

juhanikataja commented 6 days ago

Problem Description

rocALUTION compiles without HIP support but resulting lib/cmake/rocalution/rocalution-config.cmake anyhow tries to find HIP (line 90: find_dependency(HIP)).

Commenting that line out will enables use of rocALUTION even without HIP being available.

No ROCm/HIP was needed to build rocALUTION.

Operating System

22.04.5 LTS (Jammy Jellyfish)

CPU

AMD Ryzen 5 7530U with Radeon Graphics

GPU

AMD Instinct MI250X

ROCm Version

ROCm 6.2.0

ROCm Component

HIP

Steps to Reproduce

No response

(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support

No response

Additional Information

No response

mmuetzel commented 6 days ago

See #248 for a potential fix.

mmuetzel commented 14 hours ago

Are you in contact with the people that package rocALUTION for Debian? If you are: Could you please ask if they could cherry-pick the commit that fixes this issue (https://github.com/ROCm/rocALUTION/commit/a7cdd397f1a293fe8fab2082e6e6aa13ac4af640)? As it stands, the rocalution package that is distributed by Ubuntu (inherited from Debian afaict) cannot be used in CMake projects without work-arounds.