nvidia tx1 挂载 / home 至外接硬盘 设置 swap 交换分区 及 opencv-3.2.0 pytorch python3 安装
1 挂载
https://blog.csdn.net/qq_35239859/article/details/79832656
2 设置 swap 交换分区
http://www.jetsonhacks.com/2016/12/21/jetson-tx1-swap-file-and-development-preparation/
git clone https://github.com/jetsonhacks/postFlashTX1.git
cd postFlashTX1
sudo ./createSwapfile.sh -d [directory location] -s[size in gigabytes] –a
3 opencv-3.2.0 安装参考
jetpack3.2 cuda9
jetpack3.2 可以刷 opencv3.2 包,但默认装在 python2 环境中
opencv 官网 https://docs.opencv.org/3.2.0/d6/d15/tutorial_building_tegra_cuda.html
https://blog.csdn.net/chenjiehua123456789/article/details/70740606
遇到 error
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_nppi_LIBRARY (ADVANCED)
https://stackoverflow.com/questions/46584000/cmake-error-variables-are-set-to-notfound
4 pytorch 安装参考
https://github.com/andrewadare/jetson-tx2-pytorch
git clone https://github.com/pytorch/pytorch.git
git checkout -b v0.3.1 v0.3.1
sudo -E python3 setup.py install
过程中可能遇到
cmake error at thc_generated_thctensormathpointwise.cu.o
注意前面的 swap 设置正确了没
重新 python install 前需要删除之前 build 的文件
/pytorch/torch/lib/build
/pytorch/torch/lib/tmp_install
build 时有 warning:
THCNumerics:cuh(38):warning:integer conversion resulted in a change of sign
https://github.com/pytorch/pytorch/issues/2955
ignore 就好