Ubuntu16.04下Cuda与Cudnn版本查询

1.Cuda版本查询

命令:nvcc -V

显示如下:

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Fri_Sep__1_21:08:03_CDT_2017
Cuda compilation tools, release 9.0, V9.0.176

 

 

2 Cudnn 版本查询

命令:cat /usr/local/cuda/include/cudnn.h | grep CUDNN_MAJOR -A 2

显示如下:

#define CUDNN_MAJOR 7
#define CUDNN_MINOR 0
#define CUDNN_PATCHLEVEL 3
--
#define CUDNN_VERSION    (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)

#include "driver_types.h"

 

你可能感兴趣的:(Ubuntu系统学习笔记)