How to check for GPU on CentOS Linux

前端 未结 5 2079
时光说笑
时光说笑 2021-02-20 00:52

It is suggested that on Linux, GPU be found with the command lspci | grep VGA. It works fine on Ubuntu but when I try to use the same on CentOS, it says lspci comma

5条回答
  •  感情败类
    2021-02-20 00:55

    This assumes you have proprietary drivers installed, but issue the following command...

    nvidia-smi
    

    The output should look similar to this:

    Mon Dec 23 10:50:28 2013       
    +------------------------------------------------------+                       
    | NVIDIA-SMI 331.20     Driver Version: 331.20         |                       
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  GeForce GTX 660     Off  | 0000:01:00.0     N/A |                  N/A |
    | 10%   38C  N/A     N/A /  N/A |     97MiB /  2047MiB |     N/A      Default |
    +-------------------------------+----------------------+----------------------+
    
    +-----------------------------------------------------------------------------+
    | Compute processes:                                               GPU Memory |
    |  GPU       PID  Process name                                     Usage      |
    |=============================================================================|
    |    0            Not Supported                                               |
    +-----------------------------------------------------------------------------+
    

提交回复
热议问题