• linux查看显卡


    查看 nvidia 显卡

    $ lspci | grep -i nvidia
    02:00.0 3D controller: nVidia Corporation Device 1023 (rev a1)
    03:00.0 3D controller: nVidia Corporation Device 1023 (rev a1)
    
    $ lspci -v -s 02:00.0
    02:00.0 3D controller: nVidia Corporation Device 1023 (rev a1)
    	Subsystem: nVidia Corporation Device 097e
    	Flags: bus master, fast devsel, latency 0, IRQ 96
    	Memory at de000000 (32-bit, non-prefetchable) [size=16M]
    	Memory at 381800000000 (64-bit, prefetchable) [size=400000000]
    	Memory at 381c00000000 (64-bit, prefetchable) [size=32M]
    	Capabilities: <access denied>
    	Kernel driver in use: nvidia
    	Kernel modules: nvidia, nouveau, nvidiafb
    
    

    或者 nvidia-smi

    Thu Feb 23 11:49:10 2017
    +------------------------------------------------------+
    | NVIDIA-SMI 352.39     Driver Version: 352.39         |
    |-------------------------------+----------------------+----------------------+
    | GPU  Name        Persistence-M| Bus-Id        Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp  Perf  Pwr:Usage/Cap|         Memory-Usage | GPU-Util  Compute M. |
    |===============================+======================+======================|
    |   0  Tesla K40m          Off  | 0000:02:00.0     Off |                    0 |
    | N/A   19C    P8    20W / 235W |     22MiB / 11519MiB |      0%      Default |
    +-------------------------------+----------------------+----------------------+
    |   1  Tesla K40m          Off  | 0000:03:00.0     Off |                    0 |
    | N/A   34C    P0   116W / 235W |   7194MiB / 11519MiB |     96%      Default |
    +-------------------------------+----------------------+----------------------+
    
    +-----------------------------------------------------------------------------+
    | Processes:                                                       GPU Memory |
    |  GPU       PID  Type  Process name                               Usage      |
    |=============================================================================|
    |    1     21130    C   ./build/tools/caffe                           5225MiB |
    |    1     24082    C   ./build/tools/caffe                           1940MiB |
    +-----------------------------------------------------------------------------+
    
    
  • 相关阅读:
    Installing — pylibmc 1.2.3 documentation
    Python-memcached的基本使用
    kindeditor在sae上传文件修改,适合php
    Kindeditor+web.py+SAE Storage 实现文件上传
    使用sae定时执行Python脚本
    Ueditor文本编辑器(新浪SAE平台版本)
    NicEdit
    Lind.DDD.LindMQ的一些想法
    Redis学习笔记~关于空间换时间的查询案例
    微信扫码支付~官方DEMO的坑~参数不能自定义
  • 原文地址:https://www.cnblogs.com/bregman/p/6432829.html
Copyright © 2020-2023  润新知