mirror of
https://github.com/nlzy/turing-unlock.git
synced 2026-12-03 19:52:43 +07:00
[GH-ISSUE #5] Compatibility report: RTX 2080 (TU104, 10de:1e87) works on driver 615.78.08 + kernel 7.3 - FP16->FP32 39.0->64.5 TFLOPS (+65%) #6
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nlzy/turing-unlock#6
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @senjinthedragon on GitHub (Oct 25, 2026).
Original GitHub issue: https://github.com/nlzy/turing-unlock/issues/5
Card
10de:1e87, bus0000:01:00.0, VBIOS90.04.23.40.6F(Gigabyte, subsystem1458:37c5)Environment
nvidia-open-dkms), nvidia is in the initramfsmaster@1d379b7(2.0.0) withpackaging/arch, with the PKGBUILD changed to callinstall-dracutinstead ofinstall-mkinitcpio. The dracut drop-in worked as is (rd.driver.pre=turing_unlock), and turing_unlock finishes before nvidia binds. DKMS addsLLVM=1for the Clang kernel by itself.0x1e87is in the TU104 list.Result
TU104 works with the unchanged TU102 Booter/firmware path, unlocking on the first boot and on every boot since:
nvidiabound the card normally afterwards. The display came up fine, with no Xid errors.Dense cuBLAS
GemmEx, 5-sample medians, all figures in TFLOPS:FP16->FP16 and FP32 are unchanged by the unlock. Unlocked FP16->FP32 now runs within about 3% of FP16->FP16.
Power / thermals
nvidia-smi -pl 200, stock is 245 W). The card held about 203 W with throttle reason0x4(SW power cap), 1890 MHz steady, max 71 C. The power limit is respected after the unlock.Notes
ss0reads0x2300000on this card (TU106 in #3 reported0x0).ss1is0x6, same as TU106.@mwbreur commented on GitHub (Oct 25, 2026):
cd cdcdcdcdGot it to work eventually.
I tried it on a NVIDIA GeForce RTX 2080, 8192 MiB, 90.04.0B.80.0C, 0x130210DE, 3
01:00.0 VGA compatible controller [0300]: NVIDIA Corporation TU104 [GeForce RTX 2080 Rev. A] [10de:1e87] (rev a1) (prog-if 00 [VGA controller])
#!/bin/bash
Exit immediately if a command exits with a non-zero status
set -e
echo "========================================================================"
echo " Turing-Unlock Automated Installer for Ubuntu 26.04 LTS & NVIDIA 615 Open"
echo "========================================================================"
echo "⚠️ WARNING: Unlocking tensor cores draws high power and may damage"
echo " your hardware. Use entirely at your own risk."
echo "========================================================================"
sleep 3
1. Ensure running as root
if [ "$EUID" -ne 0 ]; then
echo "❌ Error: Please run this script using sudo: sudo ./install.sh"
exit 1
fi
2. Check for local repository context
if [ ! -f "Makefile" ] || [ ! -d "kernel/turing_unlock" ]; then
echo "❌ Error: Script must be executed from inside the cloned 'turing-unlock' directory."
exit 1
fi
3. Add multiverse and install the explicit 615-open stack
echo "📦 [1/7] Ensuring multiverse repository is active and installing NVIDIA 615 Open..."
add-apt-repository -y multiverse
apt-get update
apt-get install -y nvidia-driver-615-open build-essential dkms wget git python3 xz-utils
4. Build the Debian packages out of the source code
echo "🏗️ [2/7] Cleaning cache and building native Debian packages..."
make clean
Running compilation as regular user matching the folder owner if possible, fallback to root
STAGING_USER=$(logname || echo "root")
sudo -u "$STAGING_USER" make deb
5. Install the newly compiled custom kernel module and firmware
echo "💿 [3/7] Deploying custom turing-unlock packages via apt..."
apt-get install -y --reinstall ./build/deb/turing-unlock-*.deb
6. Configure modprobe soft dependencies to correct the loading precedence
echo "⚙️ [4/7] Generating soft-dependencies configuration for modprobe..."
cat << 'EOF' > /etc/modprobe.d/turing-unlock-open.conf
softdep nvidia pre: turing_unlock
softdep nvidia-open pre: turing_unlock
softdep nvidia_drm pre: turing_unlock
softdep nvidia_modeset pre: turing_unlock
EOF
7. Create the initramfs-tools generation hook to bundle custom firmware blobs
echo "📂 [5/7] Creating initramfs firmware asset hook script..."
cat << 'EOF' > /etc/initramfs-tools/hooks/turing_unlock_fw
#!/bin/sh
PREREQ=""
prereqs() {
echo "$PREREQ"
}
case $1 in
prereqs)
prereqs
exit 0
;;
esac
. /usr/share/initramfs-tools/hook-functions
if [ -d /lib/firmware/turing-unlock ]; then
copy_modules_dir /lib/firmware/turing-unlock
fi
EOF
chmod +x /etc/initramfs-tools/hooks/turing_unlock_fw
8. Append the runtime parameters to GRUB safely if not already present
echo "📝 [6/7] Injecting targets parameter into bootloader configuration..."
if ! grep -q "turing_unlock.targets=" /etc/default/grub; then
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="rd.driver.pre=turing_unlock turing_unlock.targets=all /' /etc/default/grub
fi
9. Configure persistent power ceilings and performance modes via rc.local
echo "🔋 [7/7] Setting up persistent 200W safety power ceiling on startup..."
if [ ! -f /etc/rc.local ]; then
cat << 'EOF' > /etc/rc.local
#!/bin/bash
nvidia-smi -pm 1
nvidia-smi -pl 200
exit 0
EOF
else
Insert before exit 0 if file exists but doesn't have the commands
if ! grep -q "nvidia-smi -pl 200" /etc/rc.local; then
sed -i '/exit 0/i nvidia-smi -pm 1\nnvidia-smi -pl 200' /etc/rc.local
fi
fi
chmod +x /etc/rc.local
10. Reconstruct the boot ramdisk allocations completely
echo "🔄 Rebuilding kernel initramfs system boot images..."
update-initramfs -u -k all
update-grub
echo "========================================================================"
echo " ✅ SUCCESS: Installation complete!"
echo "========================================================================"
echo " Please REBOOT your machine now."
echo " After rebooting, run this command to verify the unlock:"
echo " journalctl -k -b | grep turing_unlock"
echo "========================================================================"
Automated Setup Script for Ubuntu 26.04 LTS (NVIDIA 615 Open Branch)
If you are running an Ubuntu desktop/server layout with standard
initramfs-tools(instead of Arch Linux'sdracut), you can automate the entire driver migration, priority sorting, firmware hooks, and power-capping configurations.Ctrl+O,Enter,Ctrl+X).Oh yes and the result : user@ai-unsloth:~$ ~/.unsloth/studio/unsloth_studio/bin/python /home/michiel/test_tensor.py
Your RTX 2080 is performing at: 67.20 TFLOPS
Tests done with cuda_samples
TEST: FP16 Tensor Core GEMM Execution
Initializing...
GPU Device 0: "Turing" with compute capability 7.5
M: 4096 (16 x 256)
N: 4096 (16 x 256)
K: 4096 (16 x 256)
Preparing data for GPU...
Required shared memory size: 64 Kb
Computing... using high performance kernel compute_gemm
Time: 4.808896 ms
TFLOPS: 28.58
TEST: INT8 Integer Tensor Core (IMMA) Execution
Initializing...
GPU Device 0: "Turing" with compute capability 7.5
M: 4096 (16 x 256)
N: 4096 (16 x 256)
K: 4096 (16 x 256)
Preparing data for GPU...
Required shared memory size: 64 Kb
Computing... using high performance kernel compute_gemm_imma
Time: 2.596160 ms
TOPS: 52.94
TEST: Asynchronous Memory Pipeline Performance
[globalToShmemAsyncCopy] - Starting...
GPU Device 0: "Turing" with compute capability 7.5
MatrixA(1280,1280), MatrixB(1280,1280)
Running kernel = 0 - AsyncCopyMultiStageLargeChunk
Computing result using CUDA Kernel...
done
Performance= 1158.41 GFlop/s, Time= 3.621 msec, Size= 4194304000 Ops, WorkgroupSize= 256 threads/block
Checking computed result for correctness: Result = PASS
NOTE: The CUDA Samples are not meant for performance measurements. Results may vary when GPU Boost is enabled.
TEST: Cooperative Groups Warp Aggregated Atomics
GPU Device 0: "Turing" with compute capability 7.5
CPU max matches GPU max