2017年6月1日木曜日

ubuntuの各種ツール、ライブラリのバージョン確認方法をまとめてみた。(summarized the version check method of various tools and libraries on ubuntu)

はじめに

環境構築時に影響を及ぼす、各種ツール、ライブラリのバージョンの確認方法をメモしたものである

 

ubuntu 

 cat /etc/lsb-release  
 DISTRIB_DESCRIPTION="Ubuntu 16.04.2 LTS"
    DISTRIB_DESCRIPTION="Ubuntu 16.04.3 LTS" (2017/10/4)

kernel

 uname -r
 4.4.0-78-generic
    4.4.0-96-generic (2017/10/4)

CPU情報

 cat /proc/cpuinfo
 

gcc

 gcc --version
 gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609

 

docker

 docker --version
 Docker version 17.05.0-ce, build 89658be

 

GPUボード情報

 nvidia-smi

+-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.39                 Driver Version: 375.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  GeForce GTX 105...  Off  | 0000:01:00.0      On |                  N/A |
| 43%   31C    P0    35W /  75W |    202MiB /  4037MiB |      3%      Default |
+-------------------------------+----------------------+----------------------+
                                                                              
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1106    G   /usr/lib/xorg/Xorg                             159MiB |
|    0      2237    G   compiz                                          39MiB |
|    0      2575    G   unity-control-center                             1MiB |
+-----------------------------------------------------------------------------+

  +-----------------------------------------------------------------------------+
| NVIDIA-SMI 375.66                 Driver Version: 375.66                    |
|-------------------------------+----------------------+----------------------+
| 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 105...  Off  | 0000:01:00.0      On |                  N/A |
| 43%   27C    P8    35W /  75W |    393MiB /  4037MiB |      0%      Default |
+-------------------------------+----------------------+----------------------+
                                                                             
+-----------------------------------------------------------------------------+
| Processes:                                                       GPU Memory |
|  GPU       PID  Type  Process name                               Usage      |
|=============================================================================|
|    0      1005    G   /usr/lib/xorg/Xorg                             206MiB |
|    0      1821    G   compiz                                         128MiB |
|    0      2517    G   ...el-token=12D20A7A54878E99355325DC34B176F3    55MiB |
+-----------------------------------------------------------------------------+

CUDA

 nvcc -V
 nvcc: NVIDIA (R) Cuda compiler driver
 Cuda compilation tools, release 8.0, V8.0.61

 

cuDNN

 ls /usr/lib/x86_64-linux-gnu/libcu*
 /usr/lib/x86_64-linux-gnu/libcudnn.so.5.1.10

 

python

 python --version
 Python 2.7.12

 

Caffe

 caffe --version
 caffe version 1.0.0

TensorFlow

 pip list | grep tensorflow
 tensorflow-gpu (1.1.0)


現在共有ライブラリーで有効なOpenCVのバージョンを表示する

 pkg-config --modversion opencv

python OpenCV

 print cv2.__version__
 2.4.9.1

順次追加予定

0 件のコメント:

コメントを投稿