当前位置:网站首页>Kunpeng arm server compilation and installation paddlepaddle
Kunpeng arm server compilation and installation paddlepaddle
2022-06-24 14:08:00 【Tomato expert】
Don't talk nonsense , Open up !
Many of the official tutorials do not cover , Various problems occurred during installation , The following is a supplement to the official tutorial , What's the problem? , Welcome to correct !
One 、cmake
Paddle rely on cmake Build it , need cmake edition >=3.15, If the source provided by the operating system includes the appropriate version of cmake, Direct installation , Otherwise, you need to install the source code
# Remove previous versions of cmake
yum remove cmake
wget https://github.com/Kitware/CMake/releases/download/v3.16.8/cmake-3.16.8.tar.gz
tar -xzf cmake-3.16.8.tar.gz && cd cmake-3.16.8
./bootstrap && make && sudo make installI encountered the following errors during installation :
Could NOT find OpenSSL, try to set the path to OpenSSL root folder in the system variable OPENSSL_ROOT_DIR (missing: OPENSSL_LIBRARIES OPENSSL_INCLUDE_DIR) 
terms of settlement , Use the following command to install :
yum install openssl-develThen do it again cmake Installation command .
Two 、patchelf
The meaning of the official installation documentation , This is still needed at present , The process is as follows
Be sure to download aarch64 The branch
git clone -b aarch64 https://github.com/NixOS/patchelf.git
./bootstrap.sh
./configure
make
make check
sudo make install
The following error may be reported during installation :failed to run aclocal: No such file or directory
terms of settlement , Use the following command to install :
yum install autoconf
yum install automakeThen do it again make Installation command .
3、 ... and 、paddle
The process is consistent with the official , But officially develop The branch , I use the official version of the branch here
git clone -b release/2.3 https://github.com/PaddlePaddle/Paddle.git
cd Paddle
mkdir build && cd buildThere are a large number of open files during the linking process , The system default limit may be exceeded, resulting in compilation errors , Set the maximum number of files allowed to be opened by the process :
ulimit -n 4096perform cmake:
Python2 Commands in the environment :
cmake .. -DPY_VERSION=2 -DPYTHON_EXECUTABLE=`which python2` -DWITH_ARM=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF
Python3 Environmental order :
cmake .. -DPY_VERSION=3 -DPYTHON_EXECUTABLE=`which python3` -DWITH_ARM=ON -DWITH_TESTING=OFF -DCMAKE_BUILD_TYPE=Release -DON_INFER=ON -DWITH_XBYAK=OFF
A wrong : Errors that may be encountered during compilation :Could NOT find PythonLibs (missing: PYTHON_LIBRARIES PYTHON_INCLUDE_DIRS)

terms of settlement
https://felaim.blog.csdn.net/article/details/105832560
Error 2 : No, numpy package

install numpy It may also appear that you cannot find ‘Python.h’ file , terms of settlement , download python3 Development package for :
yum install python3-develError of three :

![]()
terms of settlement :
pip3 install wheel -i https://mirror.baidu.com/pypi/simple
pip3 install protobuf -i https://mirror.baidu.com/pypi/simple Four 、make
Use the following command to compile , Be careful , Because the processor is ARM framework , If not TARGET=ARMV8 An error will be reported during compilation .
make TARGET=ARMV8 -j$(nproc) Enter after compilation Paddle/build/python/dist Found generated in directory .whl package .
make In the process from git Download various packages from , slowly , You can speed up the package download in this way : Speed up github Access and download - GitClone
边栏推荐
- kotlin 组合挂起函数
- Research and development practice of Kwai real-time data warehouse support system
- 2022 construction elevator driver (construction special type of work) examination questions and online simulation examination
- OpenHarmony 1
- Kotlin composite suspend function
- 智慧园区SaaS管理系统解决方案:赋能园区实现信息化、数字化管理
- HarmonyOS.2
- Activity lifecycle
- Operation of simulated examination platform of examination question bank for B certificate of Jiangxi provincial safety officer in 2022
- Jericho After sleep, the system will wake up regularly and continue to run without resetting [chapter]
猜你喜欢

Rasa 3.x 学习系列-非常荣幸成为 Rasa contributors 源码贡献者,和全世界的Rasa源码贡献者共建共享Rasa社区!

MIT-6.824-lab4A-2022(万字讲解-代码构建)

Mit-6.824-lab4a-2022 (ten thousand words explanation - code construction)

智慧园区SaaS管理系统解决方案:赋能园区实现信息化、数字化管理

Autorf: learn the radiation field of 3D objects from single view (CVPR 2022)

Telecommuting: camping at home office gadgets | community essay solicitation
![Jerry's serial port receiving IO needs to set the digital function [chapter]](/img/04/48e7da42101a53827463d479952f67.png)
Jerry's serial port receiving IO needs to set the digital function [chapter]

#21Set经典案例

Tupu software is the digital twin of offshore wind power, striving to be the first

SAP Marketing Cloud 功能概述(四)
随机推荐
Kotlin coordination channel
The project manager needs to look at six characteristics to build a team
取消冒泡
Télétravail: Camping à la maison gadgets de bureau | rédaction communautaire
Unity 热力图建立方法
杰理之.睡眠以后定时唤醒系统继续跑不复位【篇】
NPM package [details] (including NPM package development, release, installation, update, search, uninstall, view, version number update rules, package.json details, etc.)
90%的项目经理都跳过的坑,你现在还在坑里吗?
一键生成大学、专业甚至录取概率,AI填报志愿卡这么神奇?
Dragon lizard developer said: first time you got an electric shock, so you are such a dragon lizard community| Issue 8
2022年江西省安全员B证考试题库模拟考试平台操作
conda和pip命令
AutoRF:从单视角观察中学习3D物体辐射场(CVPR 2022)
项目经理的晋级之路
How to avoid serious network security accidents?
SAP Marketing Cloud 功能概述(三)
Three efficient programming skills of go language
Jerry's serial port receiving IO needs to set the digital function [chapter]
PM也要学会每天反省
2022年施工升降机司机(建筑特殊工种)考试试题及在线模拟考试