当前位置:网站首页>Jetson TX1 installation pytoch
Jetson TX1 installation pytoch
2022-07-23 12:36:00 【cg101202】
General process
1. Reshipment system
Reinstall the system first , Avoid unnecessary troubles caused by chaotic old systems .
Install dependency packages
sudo apt-get install python3-pip cmake
pip3 install numpy pyyaml mkl mkl-include setuptools cffi typing
# It is also recommended to install other packages in the major tutorials , I don't know if it's useful .
download Pytorch Source code
# If you want to install the historical version , You can download the source code of the corresponding version , perhaps git checkout
git clone --recursive http://github.com/pytorch/pytorch
cd pytorch
Install what is required in the source code Python Dependency package
sudo pip3 install -r requirements.txt
install
# Direct installation
sudo python3 setup.py install
# Generate whl
python3 setup.py bdist_wheel
A reference link for installation is attached :
- https://gist.github.com/dusty-nv/ef2b372301c00c0a9d3203e42fd83426
- https://github.com/andrewadare/jetson-tx2-pytorch
- PyTorch for Jetson Nano - NVIDIA Developer Forums
- https://github.com/dusty-nv/jetson-reinforcement/blob/master/CMakePreBuild.sh
Possible problems :
- Out of memory
# The displayed error message is not saved
# It seems to be some internal error
terms of settlement : Add swap
A reference link for adding partitions is attached :
https://help.ubuntu.com/community/SwapFaq#How_do_I_add_or_modify_a_swap_partition.3F
https://www.jetsonhacks.com/2016/12/21/jetson-tx1-swap-file-and-development-preparation/
- NCCL Compiler error
Makefile:68: recipe for target '/home/ubuntu/software/pytorch/build/nccl/obj/collectives/device/devlink.o' failed
make[5]: *** [/home/ubuntu/software/pytorch/build/nccl/obj/collectives/device/devlink.o] Error 255
Makefile:44: recipe for target '/home/ubuntu/software/pytorch/build/nccl/obj/collectives/device/colldevice.a' failed
make[4]: *** [/home/ubuntu/software/pytorch/build/nccl/obj/collectives/device/colldevice.a] Error 2
Makefile:25: recipe for target 'src.build' failed
make[3]: *** [src.build] Error 2
CMakeFiles/nccl_external.dir/build.make:110: recipe for target 'nccl_external-prefix/src/nccl_external-stamp/nccl_external-build' failed
make[2]: *** [nccl_external-prefix/src/nccl_external-stamp/nccl_external-build] Error 2
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/nccl_external.dir/all' failed
make[1]: *** [CMakeFiles/nccl_external.dir/all] Error 2
because TX1 By default, it is not installed NCCL, Therefore, in order to avoid error reporting , But for CMakeLists.txt and setup.py Make the following changes :
# append to setup.py
USE_NCCL = False
# USE_DISTRIBUTED = False
# change the option in the CMakeLists.txt
option(USE_NCCL "Use NCCL" OFF)
After modifying the parameters , Suggest clean once !!!
边栏推荐
- Steel structure review questions
- [AUTOSAR com 1. introduction to communication protocol stack]
- [distinguish the meaning and usage of constant pointer and pointer constants const int * and int * const]
- Hardware knowledge 1 -- Schematic diagram and interface type (based on Baiwen hardware operation Daquan video tutorial)
- 高等代数100道题及答案解析
- 对字符串函数的使用和理解(2)
- 【AUTOSAR COM 2.通信协议栈进阶介绍】
- 钢结构基本原理试题及答案
- [AUTOSAR CP general 1. how to read AUTOSAR official documents]
- Solve Sudoku puzzles with Google or tools
猜你喜欢

博客搭建五:图床选择

永磁电机参数的测量获取(电感、电阻、极对数、磁链常数)

编码器的一点理解

Using Google or tools to solve logical problems: Zebra problem

【AUTOSAR COM 2.通信协议栈进阶介绍】

高分子物理名词解释归纳

鋼結構基本原理複習

Using or tools to solve the path planning problem with capacity constraints (CVRP)

Enter the triangle side length and calculate the area
![[AUTOSAR DEM iv.event memory]](/img/11/78ab6e5e49aa24f061e0f431112fc2.png)
[AUTOSAR DEM iv.event memory]
随机推荐
Using pycaret: low code, automated machine learning framework to solve regression problems
Object class
Using pycaret for data mining: association rule mining
单片机学习笔记9--串口通信(基于百问网STM32F103系列教程)
高电压技术试题及答案
高电压技术考题附答案
ARM架构与编程3--按键控制LED(基于百问网ARM架构与编程教程视频)
[AUTOSAR com 1. introduction to communication protocol stack]
队列与堆的相互实现(纯c实现)
高分子物理名词解释
Switch implements expression evaluation
NLP natural language processing - Introduction to machine learning and natural language processing (2)
用单向链表实现 队列
Dicom开源工具库
使用InfluxDB数据库的疑惑
单片机学习笔记4--GPIO(基于百问网STM32F103系列教程)
常见的排序方法—选择排序
Data analysis of time series (I): main components
钢结构复习题
ARM架构与编程6--重定位(基于百问网ARM架构与编程教程视频)