准备:
- L4T 27.1 an Ubuntu 16.04 64-bit variant (aarch64)
- CUDA 8.0
- cuDNN 5.1.10
- TensorFlow安装需要用到CUDA和cuDNN
- 安装的版本为:TensorFlow v1.0.1
增加Swap交换区的大小:
//创建脚本
$ mkdir ~/swap/
$ cd ~/swap/
$ vim createSwapFile.sh
//脚本内容如下
#!/bin/bash
#NVIDIA Jetson TX1 in 3D card
#Create a swapfile for Ubuntu at the current directory location
fallocate -l 4G swapfile
#List out the file
ls -lh swapfile
# Change permissions so that only root can use it
chmod 600 swapfile
#List out the file
ls -lh swapfile
#Set up the Linux swap area
mkswap swapfile
#Now start using the swapfile
swapon swapfile
#Show that it's now being used
swapon -s
//设置权限
$ chmod +x createSwapFile.sh
//执行
$ sudo ./createSwapFile.sh
//创建swap为4G大小swap文件。
//设置开机生效
$ sudo vim /etc/fstab
//内容如下
/home/ubuntu/swap/swapfile none swa