[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Building llama.cpp for AMD GPU using only Debian packages?



Here is a small update on building llama.cpp with support for (at least
my) AMD GPU.  The cmake arguments for the latest github edition (commit
d6d24cd9ed6d0b9558643dcc28f2124bef488c52) have changed slightly since
the first recipe in this thread, so here is the one I used to
successfully build

  HIPCXX=clang-17 cmake -H. -Bbuild -DCMAKE_BUILD_TYPE=Release \
    -DGGML_HIP=ON -DAMDGPU_TARGETS=gfx1100  && \
    make -C build -j32

I picked the cmake arguments from docs/build.md, but the ones listed
there had to be modified to use clang-17 instead of clang (ie v19), and
I did not need to specify HIP_PATH.

-- 
Happy hacking
Petter Reinholdtsen


Reply to: