Compiling and Running the Project
- Open the CMakeLists.txt file and replace set(KML_PATH /opt/kml/2.2.0/bisheng3.1.0) in the file with set(KML_PATH workspace). workspace indicates the actual installation path of the math library.Figure 1 Modifying the installation path of the math library
- Access the Kunpeng DevKit, click the Development tab and then the Compile button in the Compiler and Debugger area.Figure 2 Compilation page
- Select the remote server to be compiled and click Start to start compilation.Figure 3 Compilation
To compile and run the project demo, add an environment command in the working directory text box, for example, source /opt/gcc_for_openeuler_profile.
- After the compilation is complete, click
in the upper right corner of the page. On the displayed page, choose General Settings > Target Server Management. Then click Log In in the Operation column of the target server to log in. See Figure 4. - Go to the build directory to view the compilation result.
cd workspace/KML_MATH_Project1/build ll
math_demo is an executable file generated after compilation.

- workspace indicates the workspace specified during target server configuration.
- KML_MATH_Project1 indicates the project name specified during project creation.
- Run the demo.
1./math_demo
Figure 5 Running the demo
- Click
in the upper right corner of the page, choose Project Settings, and click the Compile tab. On the displayed page shown in Figure 6, modify the compilation configuration parameters, click Save, and then click Compile to compile the project again.
Parent topic: Practice 1: Creating an HPC Application Project

