Update comfyui-rocm-dockerfile
This commit is contained in:
1 parent
8a8c312a2d
commit
389567446f
1 file changed
+13
-3
+13
-3
@@ -35,13 +35,23 @@ RUN apt-get update && apt-get install -y \
|
|||||||
libxrandr-dev \
|
libxrandr-dev \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# 1. Build required newer libdrm from source
|
# Build matching LLVMSPIRVLib (SPIRV-LLVM-Translator) for LLVM 18
|
||||||
|
RUN git clone --branch llvm_release_180 --depth 1 https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git /spirv-llvm-translator
|
||||||
|
WORKDIR /spirv-llvm-translator
|
||||||
|
RUN cmake -B build \
|
||||||
|
-DCMAKE_BUILD_TYPE=Release \
|
||||||
|
-DCMAKE_INSTALL_PREFIX=/opt/mesa \
|
||||||
|
-DLLVM_DIR=/usr/lib/llvm-18/cmake
|
||||||
|
RUN cmake --build build --parallel 16
|
||||||
|
RUN cmake --install build
|
||||||
|
|
||||||
|
# Build required newer libdrm from source
|
||||||
RUN git clone --depth 1 https://gitlab.freedesktop.org/mesa/drm.git /drm
|
RUN git clone --depth 1 https://gitlab.freedesktop.org/mesa/drm.git /drm
|
||||||
WORKDIR /drm
|
WORKDIR /drm
|
||||||
RUN meson setup build -Dbuildtype=release -Dprefix=/opt/mesa
|
RUN meson setup build -Dbuildtype=release -Dprefix=/opt/mesa
|
||||||
RUN ninja -C build -j16 && ninja -C build install
|
RUN ninja -C build -j16 && ninja -C build install
|
||||||
|
|
||||||
# 2. Build matching LLVMSPIRVLib (SPIRV-LLVM-Translator) for LLVM 21
|
# Build matching LLVMSPIRVLib (SPIRV-LLVM-Translator) for LLVM 21
|
||||||
RUN git clone --branch llvm_release_210 --depth 1 https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git /spirv-llvm-translator
|
RUN git clone --branch llvm_release_210 --depth 1 https://github.com/KhronosGroup/SPIRV-LLVM-Translator.git /spirv-llvm-translator
|
||||||
WORKDIR /spirv-llvm-translator
|
WORKDIR /spirv-llvm-translator
|
||||||
RUN cmake -B build \
|
RUN cmake -B build \
|
||||||
@@ -51,7 +61,7 @@ RUN cmake -B build \
|
|||||||
RUN cmake --build build --parallel 16
|
RUN cmake --build build --parallel 16
|
||||||
RUN cmake --install build
|
RUN cmake --install build
|
||||||
|
|
||||||
# 3. Build Mesa-git pointing to the custom libdrm and LLVMSPIRVLib paths
|
# Build Mesa-git pointing to the custom libdrm and LLVMSPIRVLib paths
|
||||||
RUN git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa.git /mesa
|
RUN git clone --depth 1 https://gitlab.freedesktop.org/mesa/mesa.git /mesa
|
||||||
WORKDIR /mesa
|
WORKDIR /mesa
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user