Skip to content

feat: builtin ROCm support #479

@ExposedCat

Description

@ExposedCat

Feature Description

I can't reproduce my existing AMD hipBLAS build:

export ROCM_PATH=/usr/lib64/rocm
export ROCM_DEVICE_LIB_PATH=$ROCM_PATH/llvm/lib/clang/18/amdgcn/bitcode
cmake -S . -B build \
  -DGGML_HIP=ON \
  -DAMDGPU_TARGETS=gfx1030 \
  -DCMAKE_BUILD_TYPE=Release \
  -DCMAKE_C_COMPILER=hipcc \
  -DCMAKE_CXX_COMPILER=hipcc
cmake --build build --config Release -j$(nproc)

error:

    sh: line 1: /usr/lib64/rocm/bin/rocm_agent_enumerator: No such file or directory
    clang++: error: cannot find ROCm device library; provide its path via '--rocm-path' or '--rocm-device-lib-path', or pass '-nogpulib' to build without ROCm device library

The Solution

Allow to use existing llamacpp binaries build

Considered Alternatives

Tried getLlama options and GGML options for building from source, none worked

Additional Context

No response

Related Features to This Feature Request

  • Metal support
  • CUDA support
  • Vulkan support
  • Grammar
  • Function calling

Are you willing to resolve this issue by submitting a Pull Request?

Might take a look, but have no experience with ROCm

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needednew featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions