Rate This Document
Findability
Accuracy
Completeness
Readability

Empty Projects

You can create empty Kunpeng projects in an automatic way and manage existing projects.

Prerequisites

The Development Assistant has been installed.

Procedure

  1. Click in the shortcut menu bar on the left pane or click next to Development Assistant. The Kunpeng Application Projects page is displayed. See Figure 1.
    Figure 1 Kunpeng Application Projects
  2. Click Empty Project. On the Empty Project page that is displayed, select New for Creation Method and click Next.
    Figure 2 Creating an empty project
    Figure 3 Opening an existing project
    • If you choose to open an existing project and the project already has sample code for several software development kits (SDKs), these SDKs cannot be canceled when selecting an SDK .
    • You can right-click a project folder and choose Kunpeng Project Management from the shortcut menu. Then on the empty project page that is displayed, the project path is automatically filled in.
  3. Select the SDKs to be deployed.
    • If you do not select an SDK, click Create to create an empty Kunpeng project. After the project is created, click Open to open it in this window.
    • You can also select one or more SDKs and click Next.
    Figure 4 Selecting no SDKs
    Figure 5 Selecting SDKs
    Table 1 Parameters for configuring an empty project

    Parameter

    Description

    Creation Method

    The options are:

    • New
    • Opening existing

    Project Name

    The default project name is Empty_ProjectN, which can be modified as required.

    Name of the empty project to be created.

    NOTE:
    • N is an integer starting from 1 in ascending order.
    • The project name can contain 1 to 64 characters, including only letters, digits, periods (.), hyphens (-), plus signs (+), parentheses (), and underscores (_). It cannot start with a period (.).

    Project Location

    The default project location is C:\Users\username\KunpengProject, which can be modified as required.

    Path for storing the empty project.

    Select Project

    Select a local path for opening an existing project.

    Select SDK

    The options are:

    • General-purpose computing SDK
    • Secure computing SDK
    • HPC SDK
    • DPAK SDK
    • Data I/O SDK
    • Data compression SDK
    NOTE:

    The sample code for the selected SDKs is provided in the local project. In subsequent steps, you can deploy the SDKs on the server.

    The deployment items displayed in the window vary according to the selected SDKs. The window supports automatic deployment of general-purpose computing and secure computing SDKs. For details about how to deploy HPC SDKs, see Installing and Uninstalling the HPC SDK.

    Deploy Server

    The options are:

    • Existing
    • New
    • Configure later
    NOTE:
    • The new server will be added to the target server management.
    • If you select Configure later, no SDKs will be deployed by default.

    IP Address

    IP address of the target server.

    SSH Port

    SSH port number of the target node.

    User Name

    Account of the target node for subsequent operations.

    Password

    Password of the target node user.

    Remember password

    If you select this option, the password of the current server user will be remembered.

    Storage Directory

    Storage directory on the target node.

    NOTE:

    The tool reads and writes the content in the storage directory. To avoid data loss, you are advised to use an empty directory.

  4. To deploy general-purpose computing, secure computing, or other SDKs, you need to configure the target node. You can use an existing server or add a new server. To add a server, enter the IP address, SSH port, user name, password, and storage directory. If you select Configure later, no SDKs will be deployed by default. See Figure 6.
    Figure 6 Configuring the target node
  5. For Deployment Method, select Online deployment, Offline deployment, or Configure later. See Figure 7.
    Figure 7 Deploying SDKs

    You can choose not to deploy SDKs temporarily if the SDKs have been deployed on the target node, the node environment does not support the SDKs (for example, the OS version does not match), or compilation and debugging are not required for the moment.

  6. After the parameters are set, click Create. Then confirm the information displayed for general-purpose computing and secure computing SDKs. See Figure 8 and Figure 9. Then create an empty Kunpeng project.
    Figure 8 Confirming TrustZone
    Figure 9 Confirming the KAE license
    • TrustZone is a hardware solution to software and hardware security problems in the Arm architecture. Based on TrustZone, iTrustee offers a complete security solution, including a CA in normal mode, a TA in secure mode, and a trusted OS in secure mode. For details about how to enable TrustZone, see Kunpeng BoostKit Confidential Computing TrustZone Kit Feature Guide.
    • A license file is an authorization file generated using a dedicated encryption tool based on the contract signed by you and Huawei as well as the server information. After obtaining the license file, load it to iBMC and activate the permission to use iBMC. For details about how to obtain the license file, see Importing a KAE License File.
  7. Verify the modules on the right during project creation. If you can click Terminate Configuration, the verification process stops. You can also click Cancel to continue the verification process. If the verification is successful, the modules on the right are displayed in green. If the verification fails, the modules are displayed in red.
    Figure 10 Terminating configuration
    Figure 11 Successful project creation
    Figure 12 Project creation failure
  8. After an empty project is created, click Open Project to open it in the current window.
    Figure 13 Viewing an empty project

    If a project folder or file is added, deleted, modified, or renamed, you can synchronize the change to the remote server. For details, see Synchronizing Code to a Remote Server.

    Use the Compiler and Debugger to compile, run, and debug the new project.