Verify You Have a CUDA-Capable GPU

Verify You Have a CUDA-Capable GPU

To verify that your GPU is CUDA-capable, go to your distribution's equivalent of System Properties, or, from the command line, enter:

$ lspci | grep -i nvidia

If you do not see any settings, update the PCI hardware database that Linux maintains by entering update-pciids (generally found in /sbin) at the command line and rerun the previous lspci command.

If your graphics card is from NVIDIA and it is listed in http://developer.nvidia.com/cuda-gpus, your GPU is CUDA-capable.

The Release Notes for the CUDA Toolkit also contain a list of supported products.

如果提示
zsh: command not found: lspci

则执行一下命令安装 pciutils
sudo apt-get install pciutils

参考:
https://docs.nvidia.com/cuda/cuda-installation-guide-linux/index.html

你可能感兴趣的:(CUDA)