免费注册
帮助文档(华北一、二)
  • 1. 检查GPU设备

    $ yum install pciutils

    $ sudo lspci | grep NVIDIA                                  

    3D controller: NVIDIA Corporation Device 1b38 (rev a1) 表示为P40

    2. 获取CUDA网络源,并配置

    NVidia官方源地址:

    http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/

    $ wget http://developer.download.nvidia.com/compute/cuda/repos/rhel7/x86_64/cuda-repo-rhel7-8.0.61-1.x86_64.rpm

    $ rpm -Uvh cuda-repo-rhel7-8.0.61-1.x86_64.rpm

    注:安装nvidia驱动需要kernel-devel包,安装方法如下:

    $ wget http://vault.centos.org/7.0.1406/updates/x86_64/Packages/kernel-devel-3.10.0-123.4.4.el7.x86_64.rpm

    $ wget http://vault.centos.org/7.0.1406/updates/x86_64/Packages/kernel-headers-3.10.0-123.4.4.el7.x86_64.rpm

    $ rpm -Uvh kernel-devel-3.10.0-123.4.4.el7.x86_64.rpm

    $ rpm -Uvh kernel-headers-3.10.0-123.4.4.el7.x86_64.rpm

    3. 安装 cuda 8.0

    $ yum install cuda-8-0

    3.1 查看驱动状态

    $ sudo nvidia-smi

    看到如下输出表示GPU驱动正常:

    4. 测试GPU基本功能(可选)

    4.1 增加LD path

    $ export LD_LIBRARY_PATH="/usr/local/cuda-7.5/lib64:/usr/lib64/:$LD_LIBRARY_PATH"

    4.2 安装cuda examples

    $ cd /usr/local/cuda/bin

    $ sh cuda-install-samples-8.0.sh ~/cuda-test/

    $ cd ~/cuda-test/NVIDIA_CUDA-8.0_Samples

    $ make

    $ ./bin/x86_64/linux/release/deviceQuery 获取设备状态

    $ ./bin/x86_64/linux/release/bandwidthTest 测试设备带宽

    Note: 如果编译过程发现lnvcuvid的错误,可以执行