Parent Issue
Part of #49 (Eliminate CUDA Toolkit dependency)
Goal
Provide clear, actionable error messages when GPU components are missing, guiding users to install the correct drivers (NOT the CUDA Toolkit).
Tasks
Error Detection
Error Messages
CPU Fallback
Error Message Examples
No GPU Driver
PyGPUkit Error: NVIDIA GPU driver not found.
To use GPU features, install the NVIDIA GPU driver:
- Windows: https://www.nvidia.com/Download/index.aspx
- Linux: apt install nvidia-driver-535 (or your distro's package)
PyGPUkit will run in CPU-only mode.
Driver Too Old
PyGPUkit Error: NVIDIA driver version 470.xx is too old.
PyGPUkit requires driver version 520.xx or newer.
Please update your GPU driver:
- Windows: https://www.nvidia.com/Download/index.aspx
- Linux: apt install nvidia-driver-535
No NVIDIA GPU
PyGPUkit: No NVIDIA GPU detected.
PyGPUkit will run in CPU-only mode using NumPy.
For GPU acceleration, an NVIDIA GPU is required.
Files to Modify
src/pygpukit/__init__.py - initialization error handling
src/pygpukit/core/device.py - device detection errors
native/core/device.cpp - C++ error detection
native/jit/compiler.cpp - NVRTC error handling
Acceptance Criteria
Labels
enhancement v0.2.4 user-experience
Parent Issue
Part of #49 (Eliminate CUDA Toolkit dependency)
Goal
Provide clear, actionable error messages when GPU components are missing, guiding users to install the correct drivers (NOT the CUDA Toolkit).
Tasks
Error Detection
nvcuda.dll/libcuda.so)Error Messages
CPU Fallback
Error Message Examples
No GPU Driver
Driver Too Old
No NVIDIA GPU
Files to Modify
src/pygpukit/__init__.py- initialization error handlingsrc/pygpukit/core/device.py- device detection errorsnative/core/device.cpp- C++ error detectionnative/jit/compiler.cpp- NVRTC error handlingAcceptance Criteria
Labels
enhancementv0.2.4user-experience