nvidia tx1 挂载/home至外接硬盘 及opencv-3.2.0 python3安装

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 就好

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值