Development Assistant
You can use the Development Assistant to create Kunpeng application projects. It supports C and C++. During coding, it automatically queries the function library provided by the Kunpeng Library, as well as highlights and associates those replacement libraries and functions. The Development Assistant performs the following functions:
- Kunpeng application projects: You only need to perform simple input and selection on the Create Kunpeng Application Project page to build empty projects and general-purpose computing, secure computing, high-performance computing (HPC), Data Processing & Acceleration Kit (DPAK), data I/O application, and data compression projects.
- Dictionary management: Supports online (automatic) and offline update of the function dictionary in the library.
- Coding assistance: Provides hints and function search for functions in the Kunpeng Library; associates and highlights the tuned functions in the Kunpeng Library during coding.
Kunpeng Application Projects
The Development Assistant provides scenario-specific Kunpeng application project templates, which help quickly build project environments, check configurations, download dependencies, and generate build files.
- Create a Kunpeng application project. For example, create a general-purpose computing in VS Code.Figure 1 Creating a project
- Deploy the SDK.Figure 2 Deploying the SDK
- After the project is created, the result is displayed.Figure 3 Successful project creation
- Click Open Project to view the sample code of the project.Figure 4 Viewing the sample code
Dictionary Management
The Development Assistant supports online (automatic) and offline update of the function dictionary in the library.
- If the Internet connection is unavailable, upload the local dictionary file.
Move the mouse pointer to
next to Dictionary Import, click download to download the dictionary file, and upload it in the upload dialog box for Local Dictionary File.Figure 5 Uploading the local dictionary file
- Set Enable Acceleration Library Prompt to Yes. After this function is enabled, the libraries and functions that match the dictionary will be automatically associated and supplemented during coding.Figure 6 Enabling acceleration library prompt
- Enable Smart Association of Compilation Options. After this function is enabled, the tool performs smart associations based on the selected compiler version. You can select the desired compiler version from the Compiler Version drop-down list.Figure 7 Enabling smart association of compilation options
When you build a script, the tool performs intelligent association based on the selected GCC version (4.8.5 to 12.3.1) or BiSheng Compiler version (2.1.0 to 4.2.0).
- Set Websites That Skip Certificate Verification. After the setting, certificate verification is not required for the website. Click Add. In the dialog box that is displayed, enter the website address.Figure 8 Adding a website
Figure 9 Entering the website address
Coding Assistance
The Development Assistant provides hints and function searches for functions in the Kunpeng Library, and associates and highlights the tuned functions in the Kunpeng Library during coding.
- Enter code on the code editing area. The tool automatically associates functions or supplements code based on the entered content.Figure 10 Automatic association with functions
- Click
in the upper right corner of the code editing area and enter a keyword in the search box to search for functions.Figure 11 Function search