Goal: Install CUDA 11.8 + cuDNN 8.6 untuk enable TensorFlow GPU di Eaglearn
Current Status:
- ✅ GPU: RTX 3050 Laptop (4GB VRAM)
- ✅ Driver: 581.29 (latest)
⚠️ CUDA: 13.0 (need 11.8 for TensorFlow)
Estimated Time: 45 minutes
Link: https://developer.nvidia.com/cuda-11-8-0-download-archive
Steps:
- Click link di atas
- Select:
- Operating System: Windows
- Architecture: x86_64
- Version: 10 atau 11
- Installer Type: exe (network) ← Recommended (smaller)
- Click Download
- File:
cuda_11.8.0_522.06_windows_network.exe(~3 MB) - Save to:
D:\Downloads\(atau folder downloads kamu)
Alternative (jika internet lambat):
- Pilih exe (local) = ~3 GB (full offline installer)
Link: https://developer.nvidia.com/cudnn
Steps:
- Click link di atas
- Click Download cuDNN
- Login atau Create Account (gratis, 2 menit)
- Accept License Agreement
- Click Download cuDNN v8.6.0 (October 3rd, 2022), for CUDA 11.x
- Click Local Installer for Windows (Zip)
- File:
cudnn-windows-x86_64-8.6.0.163_cuda11-archive.zip(~600 MB) - Save to:
D:\Downloads\
Wait for both downloads to complete before continuing!
nvidia-smi adalah driver runtime, bukan toolkit. Kita perlu check apakah CUDA Toolkit 13.0 terinstall.
# Open Command Prompt (Win+R, ketik "cmd")
nvcc --versionIf you see:
nvcc: NVIDIA (R) Cuda compiler driver
...release 13.0...
→ CUDA Toolkit 13.0 IS installed, need to uninstall
If you see:
'nvcc' is not recognized...
→ No CUDA Toolkit installed, skip to STEP 3 ✅
Method A: Control Panel (Recommended)
- Open:
Control Panel→Programs and Features - Search for "CUDA" in list
- Uninstall ALL of these (if present):
- ❌ NVIDIA CUDA Runtime 13.0
- ❌ NVIDIA CUDA Development 13.0
- ❌ NVIDIA CUDA Documentation 13.0
- ❌ NVIDIA CUDA Samples 13.0
- ❌ NVIDIA CUDA Visual Studio Integration 13.0
- ✅ Keep: NVIDIA Graphics Driver (jangan uninstall!)
- Click each → Uninstall → Follow prompts
- Restart computer (recommended)
Method B: Manual Cleanup (Optional, if uninstall fails)
# Open Command Prompt as Administrator (Win+X → Command Prompt (Admin))
rmdir /s /q "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v13.0"Prerequisites: Both files downloaded
-
Run installer:
- Navigate to
D:\Downloads\ - Right-click → Run as Administrator
- File:
cuda_11.8.0_522.06_windows_network.exe
- Navigate to
-
NVIDIA Installer will open:
- Click OK to extract
- Wait for extraction (~1 minute)
-
License Agreement:
- Read (or skip 😄)
- Click Agree and Continue
-
Installation Options:
- CRITICAL: Select Custom (Advanced)
- Click Next
-
Component Selection (IMPORTANT!):
UNCHECK these (already have newer versions):
- ❌ Driver components (your 581.29 is newer!)
- ❌ NVIDIA GeForce Experience (already installed)
- ❌ PhysX (not needed)
- ❌ NVIDIA Nsight (not needed)
CHECK these (needed for TensorFlow):
- ✅ CUDA Toolkit 11.8
- ✅ CUDA Samples 11.8 (optional, useful for testing)
- ✅ CUDA Documentation 11.8 (optional)
- ✅ CUDA Visual Studio Integration (if you use Visual Studio)
-
Installation Location:
- Default is fine:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8 - Click Next
- Default is fine:
-
Install:
- Click Next
- Wait for installation (~5-10 minutes)
- ☕ Take a coffee break!
-
Completion:
- Click Close
- DO NOT restart yet (wait after cuDNN install)
Prerequisites: CUDA 11.8 installed, cuDNN zip downloaded
-
Extract cuDNN zip:
- Navigate to
D:\Downloads\ - Right-click
cudnn-windows-x86_64-8.6.0.163_cuda11-archive.zip - Click Extract All...
- Extract to:
D:\Downloads\cudnn\ - Click Extract
- Navigate to
-
Verify extracted folder structure:
D:\Downloads\cudnn\cudnn-windows-x86_64-8.6.0.163_cuda11-archive\ ├── bin\ │ ├── cudnn64_8.dll │ ├── cudnn_ops_infer64_8.dll │ └── cudnn_cnn_infer64_8.dll ├── include\ │ └── cudnn.h └── lib\ └── x64\ └── cudnn.lib -
Copy files to CUDA directory:
Option A: Manual Copy (Easiest)
Open two File Explorer windows:
Window 1 (Source):
D:\Downloads\cudnn\cudnn-windows-x86_64-8.6.0.163_cuda11-archive\
Window 2 (Destination):
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\
Copy these folders (drag & drop):
- Drag
bincontents → merge with CUDAbinfolder - Drag
includecontents → merge with CUDAincludefolder - Drag
lib\x64contents → merge with CUDAlib\x64folder
Click Replace if prompted
Option B: Command Line (Advanced)
Open Command Prompt as Administrator:
cd D:\Downloads\cudnn\cudnn-windows-x86_64-8.6.0.163_cuda11-archive xcopy bin\*.* "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\" /Y xcopy include\*.* "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\" /Y xcopy lib\x64\*.* "C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib\x64\" /Y
-
Verify cuDNN files copied:
Check these files exist:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin\cudnn64_8.dll✅C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\include\cudnn.h✅C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\lib\x64\cudnn.lib✅
Why restart?
- Load new CUDA drivers
- Update system PATH
- Initialize GPU with new toolkit
Steps:
- Save all work
- Close all applications
- Restart computer
- Come back after restart! ←
After restart, open NEW Command Prompt:
nvcc --versionExpected Output:
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2022 NVIDIA Corporation
Built on Wed_Sep_21_10:41:10_Pacific_Daylight_Time_2022
Cuda compilation tools, release 11.8, V11.8.89
Build cuda_11.8.r11.8/compiler.31833905_0
✅ If you see "release 11.8" → SUCCESS! ❌ If you see error or different version → Something wrong
nvidia-smiExpected Output:
CUDA Version: 11.8 (or higher like 13.0 is OK - this is driver version)
✅ GPU should still show → SUCCESS!
echo %CUDA_PATH%Expected:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8
✅ Path contains "v11.8" → SUCCESS!
echo %PATH%Expected (should contain):
...CUDA\v11.8\bin;...CUDA\v11.8\libnvvp;...
✅ If you see "CUDA\v11.8" paths → SUCCESS!
Navigate to Eaglearn project:
cd D:\Eaglearn-Project
python test_gpu.pyExpected Output (SUCCESS):
============================================================
TensorFlow GPU Detection Test
============================================================
📦 TensorFlow Version: 2.15.0
🔍 Searching for GPU devices...
✅ GPU DETECTED: 1 device(s) found!
GPU 0:
Name: /physical_device:GPU:0
Type: GPU
✅ GPU memory growth enabled successfully!
✅ GPU computation successful!
📚 Library Versions:
CUDA: 11.8
cuDNN: 8.6
============================================================
✅ GPU IS READY FOR EAGLEARN!
============================================================
✅ If you see this → CUDA 11.8 installation SUCCESS! 🎉
cd D:\Eaglearn-Project
python app.pyWatch startup logs for:
🚀 TensorFlow GPU detected: 1 device(s)
✅ GPU memory growth enabled for: /physical_device:GPU:0
🚀 Using RetinaFace backend (TensorFlow GPU accelerated)
🔧 Backend: retinaface | TensorFlow GPU: True
🔧 Confidence Threshold: 0.20
✅ If you see GPU detected → Eaglearn GPU WORKING! 🎉
Open browser: http://localhost:8080
Test emotion detection performance!
| Metric | Before (CPU) | After (GPU) | Improvement |
|---|---|---|---|
| Backend | SSD | RetinaFace | Better accuracy |
| Accuracy | ~85% | ~95% | +10% |
| FPS | 10-15 | 20-25 | +67% speed |
| Latency | ~100ms | ~50ms | 2x faster |
| Confidence | 0.25 | 0.20 | More sensitive |
| GPU Usage | 0% | 30-50% | Utilized |
Solution:
- Restart Command Prompt (or computer)
- Check PATH environment variable
- Manually add to PATH if needed:
- System Properties → Environment Variables
- Edit "Path" variable
- Add:
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin
Solution:
- Verify cuDNN files in
CUDA\v11.8\bin\ - Check file:
cudnn64_8.dllexists - Restart computer
- If still fails, re-copy cuDNN files
Solution:
- Reinstall TensorFlow:
pip uninstall tensorflow tf-keras pip install tensorflow==2.15.0 tf-keras==2.15.0
- Restart Command Prompt
- Run
python test_gpu.pyagain
Solution:
- Disable antivirus temporarily
- Run installer as Administrator
- Check disk space (need ~5GB free on C:)
- Close NVIDIA processes in Task Manager
- Try again
Check logs:
- TensorFlow:
python test_gpu.py - nvidia-smi: Shows GPU status
- nvcc --version: Shows CUDA version
Reference docs:
- Full guide:
docs/CUDA_INSTALLATION_GUIDE.md - GPU optimization:
docs/GPU_OPTIMIZATION.md
Before continuing, verify ALL these:
- [ ] CUDA 11.8 downloaded
- [ ] cuDNN 8.6 downloaded
- [ ] CUDA 13.0 uninstalled (if was installed)
- [ ] CUDA 11.8 installed (Custom, without driver)
- [ ] cuDNN files copied to CUDA directory
- [ ] Computer restarted
- [ ]
nvcc --versionshows 11.8 - [ ]
test_gpu.pydetects GPU - [ ] Eaglearn app runs with GPU
All checked? Congratulations! 🎉
Ready to start? Let's do this! 🚀
Current Step: Download CUDA 11.8 from link above!