测试CUDNN是否成功安装

本文以在Ubuntu 1604 环境下,CUDA 10.0 CUDNN 7.6.0 为例子介绍如何检测CUDNN是否成功安装。

cuDNN 7.6.0 安装:


tar -xvf cudnn-10.0-linux-x64-v7.tgz
 
cd cuda  
sudo cp include/cudnn.h /usr/local/cuda/include/   
sudo cp lib64/*  /usr/local/cuda/lib64/
sudo chmod a+r /usr/local/cuda/include/cudnn.h
sudo chmod a+r /usr/local/cuda/lib64/libcudnn*
 
 
cd /usr/local/cuda/lib64/
sudo rm -rf libcudnn.so libcudnn.so.7
sudo ln -s libcudnn.so.7.6.0 libcudnn.so.7
sudo ln -s libcudnn.so.7 libcudnn.so 
sudo ldconfig
cuDNN 7.6.0 检测是否成功安装:

 下载链接:https://developer.nvidia.com/rdp/cudnn-archive

 下载三个文件:cuDNN v7.6.0 Runtime Library for Ubuntu16.04 (Deb)

                            cuDNN v7.6.0 Develpoper Library for Ubuntu16.04 (Deb)

                            cuDNN v7.6.0 Code Samples and User Guide for Ubuntu16.04 (Deb)

你可能感兴趣的:(兼容性环境配置)