TX2入门教程基础篇-查看系统和软件版本参数状态
TX2入门教程基础篇-查看系统和软件版本参数状态
说明:
- 介绍如何查看TX2系统和软件版本和参数
- 测试TX2版本:Jetpack 3.3, cuda 9.0.252, cudnn7.0, opencv3.3.1, TensorRT4.0.2
步骤:
- 查看Jetson TX2 L4T版本
ubuntu@AiROS:~$ head -n 1 /etc/nv_tegra_release
# R28 (release), REVISION: 2.1, GCID: 11272647, BOARD: t186ref, EABI: aarch64, DATE: Thu May 17 07:29:06 UTC 2018
- 查看TensorRT的版本
ubuntu@AiROS:~$ dpkg -l | grep TensorRT
ii libnvinfer-dev 4.1.3-1+cuda9.0 arm64 TensorRT development libraries and headers
ii libnvinfer-samples 4.1.3-1+cuda9.0 arm64 TensorRT samples and documentation
ii libnvinfer4 4.1.3-1+cuda9.0 arm64 TensorRT runtime libraries
ii tensorrt 4.0.2.0-1+cuda9.0 arm64 Meta package of TensorRT
- 查看系统版本
ubuntu@AiROS:~$ cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04 LTS"
- 查看系统l内核:
ubuntu@AiROS:~$ uname -a
Linux AiROS 4.4.38-tegra #1 SMP PREEMPT Thu May 17 00:15:19 PDT 2018 aarch64 aarch64 aarch64 GNU/Linux
- 查看内存:
ubuntu@AiROS:~$ free -m
total used free shared buff/cache available
Mem: 7846 918 6023 34 904 6808
Swap: 0 0 0
- 查看CPU
ubuntu@AiROS:~$ lscpu
Architecture: aarch64
Byte Order: Little Endian
CPU(s): 6
On-line CPU(s) list: 0,3-5
Off-line CPU(s) list: 1,2
Thread(s) per core: 1
Core(s) per socket: 4
Socket(s): 1
Model name: ARMv8 Processor rev 3 (v8l)
CPU max MHz: 2035.2000
CPU min MHz: 345.6000
L1d cache: 32K
L1i cache: 48K
L2 cache: 2048K
- 查看硬盘空间
ubuntu@AiROS:~$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 28G 12G 15G 43% /
devtmpfs 7.6G 0 7.6G 0% /dev
tmpfs 7.7G 172K 7.7G 1% /dev/shm
tmpfs 7.7G 26M 7.7G 1% /run
tmpfs 5.0M 4.0K 5.0M 1% /run/lock
tmpfs 7.7G 0 7.7G 0% /sys/fs/cgroup
tmpfs 785M 56K 785M 1% /run/user/1000
tmpfs 785M 0 785M 0% /run/user/1001
- 查看cuda版本
ubuntu@AiROS:~$ /usr/local/cuda/bin/nvcc -V
nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2017 NVIDIA Corporation
Built on Sun_Nov_19_03:16:56_CST_2017
Cuda compilation tools, release 9.0, V9.0.252
- 查看cudnn版本
ubuntu@AiROS:~$ cat /usr/include/cudnn.h | grep CUDNN_MAJOR -A 2
#define CUDNN_MAJOR 7
#define CUDNN_MINOR 1
#define CUDNN_PATCHLEVEL 5
--
#define CUDNN_VERSION (CUDNN_MAJOR * 1000 + CUDNN_MINOR * 100 + CUDNN_PATCHLEVEL)
#include "driver_types.h"
- 查看opencv版本
ubuntu@AiROS:~$ pkg-config --modversion opencv
3.3.1
- 查看python版本
ubuntu@AiROS:~$ python -V
Python 2.7.12
- 查看python3版本
ubuntu@AiROS:~$ python3 -V
Python 3.5.1+
- 查看opencv版本
pkg-config --modversion opencv
- 增加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
获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号