Procedure
Install NVIDIA CUDA Toolkit on Windows or Linux
Confirm a CUDA-capable NVIDIA GPU and driver, install the CUDA Toolkit from NVIDIA's download selector using the OS-specific installer or package manager docs, configure PATH if needed, then verify with nvcc --version.
Confirm you have an NVIDIA CUDA-capable GPU and a current NVIDIA driver
Confirm you have an NVIDIA CUDA-capable GPU and a current NVIDIA driver (nvidia-smi on Linux/Windows). Download the CUDA Toolkit for your OS from https://developer.nvidia.com/cuda-downloads . Linux: follow https://docs.nvidia.com/cuda/cuda-installation-guide-linux/ (package manager or runfile; elevated privileges as needed). Windows: follow https://docs.nvidia.com/cuda/cuda-installation-guide-microsoft-windows/ and run the installer (Visual Studio required for native CUDA C++ development).
Complete post-install PATH / LD_LIBRARY_PATH steps from the guide for yo
Complete post-install PATH / LD_LIBRARY_PATH steps from the guide for your OS, then open a new terminal.
nvcc --version
nvcc --version
DevRecipes is a catalog of recipes for AI agents. Search is open. Connect MCP so the editor already knows the steps. Ranked by attested runs, not votes.