当前位置:网站首页>[play with Huawei cloud] Kunpeng devkit migration practice
[play with Huawei cloud] Kunpeng devkit migration practice
2022-06-10 17:06:00 【Hua Weiyun】
1. Preface
Kunpeng development kit DevKit Provide migration for the entire R & D workflow 、 Code development 、 Compile debugging 、 test 、 Performance analysis and tuning 、 System diagnosis and other capabilities , Realize rapid migration and minimalist development of massive applications to Kunpeng platform , It is convenient for developers to quickly develop Kunpeng friendly high-performance software .
2. actual combat
2.1 Actual combat content
Use the scan migration tool for source code analysis , Modify the source code according to the scanning suggestions , Let the source code compile and run normally on the Kunpeng platform .
2.2 Premise of operation
2.2.1 Application resources
1) Watch the actual video of the migration tool carefully .
Migrating live video :https://www.hikunpeng.com/zh/developer/live/detail/1534417825342652417
2) Apply for remote laboratory in Kunpeng community ,
https://www.hikunpeng.com/zh/developer/devkit
Click cloud test service

Click to enter the remote laboratory

Click Apply now
Apply for free Kunpeng virtualization environment through email (Kunpeng 920 | 8vCPU | 16GB Memory | 200GB System disk ), Kunpeng development kit has been pre installed in the environment Kunpeng DevKit.

Operating system selection OpenEuler

Successful application


2.2.2 install finalshell
finalshell For remote ssh Login tools
finalshell Download link
http://www.hostbuf.com/t/988.html
2.2.3 install uin-vpn
Download link :http://www.leagsoft.com/doc/article/103107.html
Click the new link

Enter the information obtained in the mailbox and log in

Login again finalshell

2.2.3 Source download
1) Get into “ Kunpeng code migration tool ” Source file storage path .
cd /opt/portadv/portadmin/sourcecode/

2) download Megahit Source code .
git clone https://github.com/voutcn/megahit.git

3) Merge the code .
cd megahit/ && git submodule update

4) Create the build folder and go to .
mkdir build && cd build

Tips : Manual installation is required here cmake
5) Generate Makefile file .
cmake -DCMAKE_BUILD_TYPE=Release

6) modify megahit Catalogue group .
cd …/ && chown -R porting:porting *

3. Code migration
Log in to the migration website platform https://172.36.86.41:8084/


1) Source code analysis parameter filling
2) Start a source migration task , The task was executed successfully , View the source code report .

Click start analysis

The lower left corner can display the progress of source migration analysis

The compiler version can only be selected here GCC, Unable to select the Pentium compiler in the legend
After the report is generated, click View report

3) Click report source code migration suggestions , View the files to be migrated .

4) Modify according to the modification suggestions prompted by the system .

5) Recompile after migration , View the compilation results .

6) Run the program , View echo information .

4. Experimental experience
4.1 cmake install
You need to configure yourself in the experiment cmake Environmental Science
- download cmake-3.12.2.tar.gz:
wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz
- decompression :
tar -zxvf cmake-3.13.2.tar.gz
- Go to unzip directory :
cd cmake-3.13.2
- Execute the command to install :
./bootstrap && make && make install
- View version information , And check if the installation is successful
cmake -version
After studying this article , Have a certain understanding of cross platform software migration , At the same time, master the use of code migration tools , Be able to skillfully use migration tools to perform migration tasks .
边栏推荐
- 打造隐私计算领先方案 冲量在线数据互联平台获得鲲鹏Validated认证
- Build a leading privacy computing scheme impulse online data interconnection platform and obtain Kunpeng validated certification
- CAP 6.1 版本发布通告
- Print linked list from end to end (6)
- PyTorch基础(一)-- Anaconda 和 PyTorch安装
- 简单实现文件上传
- 消除业务代码中if....else的五种方式
- Quickly understand the commonly used symmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
- AIChE | 集成数学规划方法和深度学习模型的从头药物设计框架
- postman参数化
猜你喜欢

Technology sharing | quick intercom, global intercom

Fiddler模拟低速网络环境

看先进科技如何改变人类生活

Hidden Markov model and its training (1)

顺应医改,积极布局——集采背景下的高值医用耗材发展洞察2022

Quickly understand the commonly used symmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry

智慧景區視頻監控 5G智慧燈杆網關組網綜合杆

直播预告 | 社交新纪元,共探元宇宙社交新体验

Carry forward the past and forge ahead into the future, multiple residuals | densenet (II)

大山深处的孩子,正在看见更远的星空
随机推荐
Simple site backup shell script
webdypro layout控件不能用_SAP刘梦
The guide to the application of all-in-one privacy computing machine - the technical requirements for financial application of all-in-one privacy computing machine was officially released to help the
隐私计算一体机的应用落地指南——《隐私计算一体机金融应用技术要求》正式发布,助力金融行业数据有序共享
打造隐私计算领先方案 冲量在线数据互联平台获得鲲鹏Validated认证
解决idea打开某个项目卡住的问题
PHP实现多张图片上传功能的示例代码
VBA将字符串分割、存入数组、写入文件并保存
Hidden Markov model and its training (1)
Fiddler为测试做什么
What is the highest compound interest insurance product? How much does it cost a year?
MySQL如何修改字段类型和字段长度
复利最高的保险产品是什么?一年要交多少钱?
谁在使用我的服务器?在干什么?什么时候?
亦舒作品经典语句
Postman switching topics
Swift read userinfo of remote notification
再联合 冲量在线与飞腾完成合作伙伴认证,携手打造信创隐私计算生态圈
Technology sharing | quick intercom, global intercom
This paper introduces three feature selection methods in machine learning