From decedb87c01b186bc3506336d8604e638507b5a2 Mon Sep 17 00:00:00 2001 From: Tulili Date: Fri, 8 Mar 2024 00:04:20 -0300 Subject: [PATCH] revert(nvidia): remove cuda-toolkit from base image (it breaks stuff) --- config/common/shared/nvidia/scripts.yml | 1 - config/scripts/cuda-toolkit.nu | 12 ------------ 2 files changed, 13 deletions(-) delete mode 100755 config/scripts/cuda-toolkit.nu diff --git a/config/common/shared/nvidia/scripts.yml b/config/common/shared/nvidia/scripts.yml index 1a93ada..6a911c9 100644 --- a/config/common/shared/nvidia/scripts.yml +++ b/config/common/shared/nvidia/scripts.yml @@ -1,4 +1,3 @@ type: script-nu scripts: - nvidia-explicit-sync.nu - - cuda-toolkit.nu diff --git a/config/scripts/cuda-toolkit.nu b/config/scripts/cuda-toolkit.nu deleted file mode 100755 index 3029355..0000000 --- a/config/scripts/cuda-toolkit.nu +++ /dev/null @@ -1,12 +0,0 @@ -#!/usr/bin/env -S nu - -use lib/std.nu [ARCH] - -let FEDORA_MAJOR_VERSION = (run-external --redirect-combine rpm '-E' '%fedora' | complete).stdout -const COPR_FILE = "/etc/yum.repos.d/_cuda-toolkit.repo" - -http get $"https://developer.download.nvidia.com/compute/cuda/repos/fedora($FEDORA_MAJOR_VERSION)/($ARCH)/cuda-fedora($FEDORA_MAJOR_VERSION).repo" | save -f $COPR_FILE - -rpm-ostree install cuda-toolkit-12-4 - -rm -f $COPR_FILE