当前位置:网站首页>【玩转华为云】鲲鹏DevKit迁移实战
【玩转华为云】鲲鹏DevKit迁移实战
2022-06-10 16:05:00 【华为云】
1. 前言
鲲鹏开发套件DevKit提供面向全研发作业流程的迁移、代码开发、编译调试、测试、性能分析调优、系统诊断等能力,实现海量应用到鲲鹏平台的快速迁移和极简开发,方便开发者快速开发出鲲鹏亲和的高性能软件。
2. 实战
2.1 实战内容
利用扫描迁移工具进行源码分析,根据扫描建议修改源码,让源码在鲲鹏平台可以正常编译运行。
2.2 操作前提
2.2.1 申请资源
1)认真观看迁移工具的实战视频。
迁移实战视频:https://www.hikunpeng.com/zh/developer/live/detail/1534417825342652417
2)在鲲鹏社区申请远程实验室,
https://www.hikunpeng.com/zh/developer/devkit
点击云测服务

点击进入远程实验室

点击立即申请
通过邮箱申请免费鲲鹏虚拟化环境(Kunpeng 920 | 8vCPU | 16GB内存 | 200GB系统盘),环境中已经预装鲲鹏开发套件 Kunpeng DevKit。

操作系统选择OpenEuler

申请成功


2.2.2 安装finalshell
finalshell为远程ssh登录工具
finalshell下载链接
http://www.hostbuf.com/t/988.html
2.2.3 安装uin-vpn
下载链接:http://www.leagsoft.com/doc/article/103107.html
点击新建链接

输入邮箱中获取的信息后进行登录

再登录finalshell

2.2.3 源码下载
1)进入“鲲鹏代码迁移工具”源码文件存放路径。
cd /opt/portadv/portadmin/sourcecode/

2)下载Megahit源码。
git clone https://github.com/voutcn/megahit.git

3)将代码进行合并。
cd megahit/ && git submodule update

4)创建构建文件夹并进入。
mkdir build && cd build

提示:这里需要手动安装cmake
5)生成Makefile文件。
cmake -DCMAKE_BUILD_TYPE=Release

6)修改megahit目录属组。
cd …/ && chown -R porting:porting *

3. 代码迁移
登录迁移网址平台https://172.36.86.41:8084/


1)源码分析参数填充
2)启动一个源码迁移任务,任务执行成功,查看源码报告。

点击开始分析

左下角可以显示源码迁移分析进度

此处编译器版本只能选择GCC,无法选择图例中的昇腾编译器
报告生成后点击查看报告

3)点击报告源码迁移建议,查看需要迁移的文件。

4)根据系统提示的修改建议进行修改。

5)迁移后重新编译,查看编译结果。

6)运行程序,查看回显信息。

4.实验体会
4.1 cmake安装
实验中需要自己配置cmake环境
- 下载cmake-3.12.2.tar.gz:
wget https://github.com/Kitware/CMake/releases/download/v3.13.2/cmake-3.13.2.tar.gz
- 解压:
tar -zxvf cmake-3.13.2.tar.gz
- 进入解压目录:
cd cmake-3.13.2
- 执行命令指令安装:
./bootstrap && make && make install
- 查看版本信息,并检查是否安装成功
cmake -version
学习完本文后,能够对跨平台软件迁移有一定的了解,同时掌握代码迁移工具的使用,能够熟练使用迁移工具执行迁移任务。
边栏推荐
- adb不是内部或外部命令,也不是可运行的程序或批处理文件
- This paper introduces three feature selection methods in machine learning
- postman参数化
- 靠,嘉立创打板又降价
- Take you to play completablefuture asynchronous programming
- Intelligent scenic spot video monitoring 5g intelligent light pole gateway networking integrated pole
- 复利最高的保险产品是什么?一年要交多少钱?
- Basic use cases for jedis
- Pictographic dynamic graphic ideographic data
- ADB is not an internal or external command, nor is it a runnable program or batch file
猜你喜欢

Link multiple alamofire requests - chain multiple alamofire requests

adb不是内部或外部命令,也不是可运行的程序或批处理文件

卷起來,突破35歲焦慮,動畫演示CPU記錄函數調用過程,進互聯大廠如此簡單

嵌入式开发:使用MCU进行无线更新面临的5大挑战

消除业务代码中if....else的五种方式
![[web security self-study] section 1 building of basic Web Environment](/img/f8/f2d13c2879cdbc03ad261c6569bc1d.jpg)
[web security self-study] section 1 building of basic Web Environment

postman常用断言

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

DAO 是如何实现去中心化治理的?

Then, we will cooperate with impulse online and Feiteng to complete partner certification and jointly create a private computing ecosystem for Xinchuang
随机推荐
NumPy 学习笔记
Quickly understand the commonly used symmetric encryption algorithm, and no longer have to worry about the interviewer's thorough inquiry
简单实现文件上传
MFC basic knowledge and course design ideas
Basic use of pycharm
ahk函数命令大全
Pytorch Foundation (I) -- anaconda and pytorch installation
Flood control and drainage monitoring automatic monitoring and telemetering terminal for flood control and drainage
Mm main tables and main fields_ SAP LIUMENG_
谁在使用我的服务器?在干什么?什么时候?
接口测试学习笔记
VBA judge whether the file exists and ask for the idea of file backup
Postman common assertions
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
Embedded development: five challenges in wireless update using MCU
MM主要的表和主要字段_SAP刘梦_
IDEA的Swing可视化插件JFormDesigner
PyTorch基础(一)-- Anaconda 和 PyTorch安装
Fiddler过滤会话
script 标签自带的属性