Skip to content

[Bug] unable to build HipBlas #2107

Description

@icedwater

Git commit

I've installed rocminfo 6.0.0-1 on Ubuntu 24.04.5. However, at the step below from the build guide, I consistently fail with first a warning of OpenMP not found and next a failure to find ROCm root directory even though I've tried installing libomp1-19-dev, libomp1-20-dev, libgomp1, and lib64gomp1 in turn.

cmake .. -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS=$GFX_NAME -DAMDGPU_TARGETS=$GFX_NAME -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON

Am I missing some steps to install ROCm tools properly?

Operating System & Version

Ubuntu 24.04.5

GGML backends

HIP

Command-line arguments used

cmake .. -G "Ninja" -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DSD_HIPBLAS=ON -DCMAKE_BUILD_TYPE=Release -DGPU_TARGETS=$GFX_NAME -DAMDGPU_TARGETS=$GFX_NAME -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON -DCMAKE_POSITION_INDEPENDENT_CODE=ON

Steps to reproduce

  1. Export the ${GFX_NAME} for the build step.
  2. Run the cmake .. line above.

What you expected to happen

Configuration process to complete.

What actually happened

Image

Logs / error messages / stack trace

No response

Additional context / environment details

  • GPU is AMD Radeon 760M Graphics
  • CPU is AMD Ryzen 5 7640U
  • Total RAM is 16GB
  • Total VRAM is 512MB as per glxinfo

Activity

  1. wbruna commented on Oct 7, 2026

    @wbruna
    Contributor

    HipBlas often needs upstream AMD packages; not sure about yours on Ubuntu 24.04, but my 7600 XT on Debian did. That's what our binary builds use.

    If you decide to go that route, see e.g. https://rocm.docs.amd.com/en/latest/install/rocm.html?fam=all&w=compute&os=ubuntu&ubuntu-ver=24.04.5&i=pkgman .

    Alternatively, a Vulkan build is much easier to set up, and can probably be done with distro packages only.

  2. icedwater commented on Oct 7, 2026

    @icedwater
    Author

    I guess these steps could be added to the HipBlas section. Let me open a pull request...?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions