Skip to content
This repository has been archived by the owner on Dec 25, 2024. It is now read-only.

Commit

Permalink
feat(nvidia): CUDA toolkit
Browse files Browse the repository at this point in the history
  • Loading branch information
tulilirockz committed Mar 8, 2024
1 parent 46c24ac commit 8f0675d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions config/common/shared/nvidia/scripts.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
type: script-nu
scripts:
- nvidia-explicit-sync.nu
- cuda-toolkit.nu
12 changes: 12 additions & 0 deletions config/scripts/cuda-toolkit.nu
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/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

0 comments on commit 8f0675d

Please sign in to comment.