当前位置:网站首页>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
边栏推荐
- 【无标题】
- Antd checkbox, limit the selected quantity
- Docker installation redis
- 智慧园区SaaS管理系统解决方案:赋能园区实现信息化、数字化管理
- 2022起重信号司索工(建筑特殊工种)复训题库及答案
- kotlin 异步流
- The hidden corner of codefarming: five things that developers hate most
- 远程办公之:在家露营办公小工具| 社区征文
- The real project managers are all closed-loop masters!
- Prometheus pushgateway
猜你喜欢
![二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]](/img/d0/91ab1cc1851d7137a1cab3cf458302.png)
二叉树中最大路径和[处理好任意一颗子树,就处理好了整个树]

Rasa 3. X learning series - it is a great honor to be a source code contributor of Rasa contributors, and to build and share the rasa community with rasa source code contributors all over the world!

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

Harmony os. (2)

unity 等高线创建方法

初识云原生安全:云时代的最佳保障
![根据前序&中序遍历生成二叉树[左子树|根|右子树的划分/生成/拼接问题]](/img/f7/8d026c0e4435fc8fd7a63616b4554d.png)
根据前序&中序遍历生成二叉树[左子树|根|右子树的划分/生成/拼接问题]

OpenHarmony 1

Rongyun communication has "hacked" into the heart of the bank

Google waymo proposed r4d: remote distance estimation using reference target
随机推荐
Ti Xing Shu'an joined the dragon lizard community to jointly create a network security ecosystem
【无标题】
The hidden corner of codefarming: five things that developers hate most
钛星数安加入龙蜥社区,共同打造网络安全生态
Autorf: learn the radiation field of 3D objects from single view (CVPR 2022)
OpenHarmony 1
Jerry's test mic energy automatic recording automatic playback reference [article]
MIT-6.824-lab4A-2022(万字讲解-代码构建)
2022起重信号司索工(建筑特殊工种)复训题库及答案
百度地图API绘制点及提示信息
Activity lifecycle
2022年质量员-设备方向-岗位技能(质量员)复训题库及在线模拟考试
二造考生必看|巩固优选题库助力考生最后冲刺
食品饮料行业渠道商管理系统解决方案:实现渠道数字化营销布局
返回新列表
Baidu map API drawing points and tips
kotlin 协程上下文和调度器
Kotlin asynchronous flow
2022 construction elevator driver (construction special type of work) examination questions and online simulation examination
In the era of knowledge economy, it will teach you to do well in knowledge management