本文首发在我的个人博客:https://jlice.top/p/7p7cg/。欢迎大家前去参观,么么哒~
查看显卡信息
要使用CUDA,必须要有NVIDIA显卡,可以使用lspci
命令来查看:
$ lspci | grep NVIDIA
02:00.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1)
02:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1)
03:00.0 VGA compatible controller: NVIDIA Corporation Device 1b06 (rev a1)
03:00.1 Audio device: NVIDIA Corporation Device 10ef (rev a1
例如,上面显示显卡是NVIDIA的,1b06