From 515b79fb40983287e8ed9f08f232a536e0f2d69d Mon Sep 17 00:00:00 2001 From: Kyle Gospodnetich Date: Tue, 13 Feb 2024 23:13:27 -0800 Subject: [PATCH] feat: Add ZLUDA for CUDA support on AMD hardware, present in /usr/lib64/zluda/* --- Containerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index fda1d562..6b67a2f4 100644 --- a/Containerfile +++ b/Containerfile @@ -386,7 +386,12 @@ RUN rpm-ostree install \ wget https://raw.githubusercontent.com/KyleGospo/LatencyFleX-Installer/main/install.sh -O /usr/bin/latencyflex && \ sed -i 's@/usr/lib/wine/@/usr/lib64/wine/@g' /usr/bin/latencyflex && \ sed -i 's@"dxvk.conf"@"/usr/share/latencyflex/dxvk.conf"@g' /usr/bin/latencyflex && \ - chmod +x /usr/bin/latencyflex + chmod +x /usr/bin/latencyflex && \ + wget $(curl https://api.github.com/repos/vosen/ZLUDA/releases/latest | jq -r '.assets[] | select(.name| test(".*-linux.tar.gz$")).browser_download_url') -O /tmp/zluda.tar.gz && \ + mkdir -p /tmp/zluda && \ + tar --strip-components 1 -xvzf /tmp/zluda.tar.gz -C /tmp/zluda && \ + mv /tmp/zluda /usr/lib64/zluda && \ + rm -f /tmp/zluda.tar.gz # Configure KDE & GNOME RUN if grep -q "kinoite" <<< "${BASE_IMAGE_NAME}"; then \ @@ -778,6 +783,7 @@ RUN rm -rf \ /var/* && \ sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_gloriouseggroll-nvidia-explicit-sync.repo && \ rm -f /usr/share/vulkan/icd.d/nouveau_icd.*.json && \ + rm -rf /usr/lib64/zluda && \ echo "import \"/usr/share/ublue-os/just/95-bazzite-nvidia.just\"" >> /usr/share/ublue-os/justfile && \ mkdir -p /var/tmp && \ chmod -R 1777 /var/tmp && \