Files
amd-strix-halo-toolboxes/Dockerfile.vulkan
T
2025-07-28 21:00:49 +01:00

30 lines
841 B
Docker

FROM fedora:rawhide
# Install build tools, Vulkan headers/loader, and glslc
RUN dnf install -y \
git vim \
make gcc cmake ninja-build lld clang clang-devel compiler-rt libcurl-devel \
vulkan-loader-devel mesa-vulkan-drivers \
radeontop glslc \
&& dnf clean all
WORKDIR /opt/llama.cpp
# Clone llama.cpp
RUN git clone --recursive https://github.com/ggerganov/llama.cpp.git .
# Build with Vulkan support
RUN git clean -xdf \
&& git pull \
&& git submodule update --recursive \
&& cmake -S . -B build -G Ninja \
-DGGML_VULKAN=ON \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLLAMA_BUILD_TESTS=OFF \
-DLLAMA_BUILD_EXAMPLES=ON \
-DLLAMA_BUILD_SERVER=ON \
&& cmake --build build --config Release \
&& cmake --install build --config Release
CMD ["/bin/bash"]