File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change @@ -31,15 +31,27 @@ RUN <<EOT bash
3131 if [ "${BUILD_TYPE}" = "vulkan" ] && [ "${SKIP_DRIVERS}" = "false" ]; then
3232 apt-get update && \
3333 apt-get install -y --no-install-recommends \
34- software-properties-common pciutils wget gpg-agent && \
35- wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
36- wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \
37- apt-get update && \
38- apt-get install -y \
39- vulkan-sdk && \
40- apt-get clean && \
41- rm -rf /var/lib/apt/lists/* && \
42- echo "vulkan" > /run/localai/capability
34+ software-properties-common pciutils wget gpg-agent curl xz-utils && \
35+ echo "vulkan" > /run/localai/capability && \
36+ if [ "amd64" = "$TARGETARCH" ]; then
37+ wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
38+ wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \
39+ apt-get update && \
40+ apt-get install -y \
41+ vulkan-sdk && \
42+ apt-get clean && \
43+ rm -rf /var/lib/apt/lists/*
44+ fi
45+ if [ "arm64" = "$TARGETARCH" ]; then
46+ # For ARM64, we need to build the Vulkan SDK manually as there are no packages available
47+ mkdir vulkan && cd vulkan && curl -o vulkan-sdk.tar.xz https://sdk.lunarg.com/sdk/download/latest/linux/vulkan-sdk.tar.xz && \
48+ tar -xJf vulkan-sdk.tar.xz && \
49+ rm vulkan-sdk.tar.xz && \
50+ cd * && \
51+ ./vulkansdk -j 1 && \
52+ cd ../.. && \
53+ rm -rf vulkan
54+ fi
4355 fi
4456EOT
4557
You can’t perform that action at this time.
0 commit comments