< >
Home » NX入门教程基础篇 » NX入门教程基础篇-查看系统和软件版本参数状态

NX入门教程基础篇-查看系统和软件版本参数状态

NX入门教程基础篇-查看系统和软件版本参数状态

说明:

  • 介绍如何查看NX系统和软件版本和参数

步骤:

  • 查看Jetson NX L4T版本
$ head -n 1 /etc/nv_tegra_release
# R32 (release), REVISION: 4.2, GCID: 20074772, BOARD: t186ref, EABI: aarch64, DATE: Thu Apr  9 01:26:40 UTC 2020
  • 查看TensorRT的版本
$ dpkg -l | grep TensorRT
ii  graphsurgeon-tf                               7.1.0-1+cuda10.2                                 arm64        GraphSurgeon for TensorRT package
ii  libnvinfer-bin                                7.1.0-1+cuda10.2                                 arm64        TensorRT binaries
ii  libnvinfer-dev                                7.1.0-1+cuda10.2                                 arm64        TensorRT development libraries and headers
ii  libnvinfer-doc                                7.1.0-1+cuda10.2                                 all          TensorRT documentation
ii  libnvinfer-plugin-dev                         7.1.0-1+cuda10.2                                 arm64        TensorRT plugin libraries
ii  libnvinfer-plugin7                            7.1.0-1+cuda10.2                                 arm64        TensorRT plugin libraries
ii  libnvinfer-samples                            7.1.0-1+cuda10.2                                 all          TensorRT samples
ii  libnvinfer7                                   7.1.0-1+cuda10.2                                 arm64        TensorRT runtime libraries
ii  libnvonnxparsers-dev                          7.1.0-1+cuda10.2                                 arm64        TensorRT ONNX libraries
ii  libnvonnxparsers7                             7.1.0-1+cuda10.2                                 arm64        TensorRT ONNX libraries
ii  libnvparsers-dev                              7.1.0-1+cuda10.2                                 arm64        TensorRT parsers libraries
ii  libnvparsers7                                 7.1.0-1+cuda10.2                                 arm64        TensorRT parsers libraries
ii  nvidia-container-csv-tensorrt                 7.1.0.16-1+cuda10.2                              arm64        Jetpack TensorRT CSV file
ii  python-libnvinfer                             7.1.0-1+cuda10.2                                 arm64        Python bindings for TensorRT
ii  python-libnvinfer-dev                         7.1.0-1+cuda10.2                                 arm64        Python development package for TensorRT
ii  python3-libnvinfer                            7.1.0-1+cuda10.2                                 arm64        Python 3 bindings for TensorRT
ii  python3-libnvinfer-dev                        7.1.0-1+cuda10.2                                 arm64        Python 3 development package for TensorRT
ii  tensorrt                                      7.1.0.16-1+cuda10.2                              arm64        Meta package of TensorRT
ii  uff-converter-tf                              7.1.0-1+cuda10.2                                 arm64        UFF converter for TensorRT package
  • 查看系统版本
$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=18.04
DISTRIB_CODENAME=bionic
DISTRIB_DESCRIPTION="Ubuntu 18.04.4 LTS"
  • 查看系统l内核:
$  uname -a
Linux ubuntu 4.9.140-tegra #1 SMP PREEMPT Wed Apr 8 18:15:20 PDT 2020 aarch64 aarch64 aarch64 GNU/Linux
  • 查看内存:
$ free -m
              total        used        free      shared  buff/cache   available
Mem:           7763        3327        1760         326        2675        4862
Swap:          3881          40        3841
  • 查看CPU
$ lscpu
Architecture:         aarch64
Byte Order:           Little Endian
CPU(s):               6
On-line CPU(s) list:  0,1
Off-line CPU(s) list: 2-5
Thread(s) per core:   1
Core(s) per socket:   2
Socket(s):            1
Vendor ID:            Nvidia
Model:                0
Model name:           ARMv8 Processor rev 0 (v8l)
Stepping:             0x0
CPU max MHz:          1907.2000
CPU min MHz:          115.2000
BogoMIPS:             62.50
L1d cache:            64K
L1i cache:            128K
L2 cache:             2048K
L3 cache:             4096K
Flags:                fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics fphp asimdhp
  • 查看硬盘空间,已做固态启动
$ df -h
Filesystem      Size  Used Avail Use% Mounted on
none            3.5G     0  3.5G   0% /dev
tmpfs           3.8G  192M  3.7G   5% /dev/shm
tmpfs           3.8G   46M  3.8G   2% /run
tmpfs           5.0M  4.0K  5.0M   1% /run/lock
tmpfs           3.8G     0  3.8G   0% /sys/fs/cgroup
/dev/nvme0n1p1  234G   17G  206G   8% /
tmpfs           777M  132K  777M   1% /run/user/1000
/dev/mmcblk0p1   15G   12G  1.6G  89% /media/ubuntu/239f3029-4825-443b-972e-4392c57f5749
  • 增加cuda到bashrc文件
export CUDA_HOME=/usr/local/cuda
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda/lib64:/usr/local/cuda/extras/CUPTI/lib64
export PATH=$PATH:$CUDA_HOME/bin
  • 查看cuda版本
$ nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2019 NVIDIA Corporation
Built on Wed_Oct_23_21:14:42_PDT_2019
Cuda compilation tools, release 10.2, V10.2.89
  • 查看cudnn版本
$dpkg -l libcudnn*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libcudnn8      8.0.0.145-1+ arm64        cuDNN runtime libraries
ii  libcudnn8-dev  8.0.0.145-1+ arm64        cuDNN development libraries and h
un  libcudnn8-dev- <none>       <none>       (no description available)
ii  libcudnn8-doc  8.0.0.145-1+ arm64        cuDNN documents and samples
  • 查看opencv版本
$dpkg -l libopencv
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  libopencv      4.1.1-2-gd5a arm64        Open Computer Vision Library
  • 查看python版本
$ python -V 
Python 2.7.17
  • 查看python3版本
$ python3 -V 
Python 3.6.9
  • 查看tensorrt版本
$ dpkg -l tensorrt
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name           Version      Architecture Description
+++-==============-============-============-=================================
ii  tensorrt       7.1.0.16-1+c arm64        Meta package of TensorRT
  • 各种应用的 Sample 代码路径
CUDA         /usr/local/cuda-/samples/
CUDNN            /usr/src/cudnn_samples_/
OpenCV           /usr/share/OpenCV/samples/
TensorRT         /usr/src/tensorrt/samples/
VisionWorks      /usr/share/visionworks/sources/samples/
                 /usr/share/visionworks-tracking/sources/samples/
                 /usr/share/visionworks-sfm/sources/samples/

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: nx入门教程基础篇