Skip to content

Your GeForce runs AI at half speed. This fixes it for 20/30/40 series cards. Up to 2× FP16 / BF16 / TF32 tensor throughput

C
1.2 KB
Raw Blame
#!/bin/sh
# SPDX-License-Identifier: GPL-2.0-only
# Install the packages .github/ci/package.sh built, check what they put on
# disk, then remove them again. Run as root from the repository root.
set -eu
version=$(cat VERSION)
src=/usr/src/gpu-unlock-$version
fw=/usr/lib/firmware/gpu-unlock/610.43.03
dracut=/usr/lib/dracut/dracut.conf.d/gpu-unlock.conf
. /etc/os-release
case "$ID" in
debian|ubuntu)
	install="apt-get install -qy --no-install-recommends ./build/deb/*.deb"
	remove="apt-get purge -qy"
	boot=/usr/share/initramfs-tools/scripts/init-top/gpu-unlock ;;
fedora)
	install="dnf install -qy build/rpm/RPMS/noarch/*.rpm"
	remove="dnf remove -qy"
	boot=$dracut ;;
arch)
	install="pacman -U --noconfirm packaging/arch/*.pkg.tar.zst"
	remove="pacman -Rns --noconfirm"
	boot=/etc/mkinitcpio.conf.d/zz-gpu-unlock.conf ;;
*)
	echo "unknown distribution: $ID" >&2
	exit 1 ;;
esac

$install
test -f "$src/dkms.conf"
test -f "$src/main.c"
test -f "$fw/gsp_ga10x.bin"
test -f "$fw/booter_load_ga102.bin"
test -f "$dracut"
test -f "$boot"

$remove gpu-unlock-dkms gpu-unlock-firmware
test ! -e "$src"
test ! -e "$fw"
test ! -e "$dracut"
test ! -e "$boot"
echo "packages install and remove cleanly"