Description of the HelloDavinci File
The samples directory contains compilation configurations and program samples (HelloDavinci included) of the Atlas. To run the HelloDavinci code file independently, obtain the Samples/Cmake, Samples/Common, and Samples/HelloDavinci folders, as shown in Figure 1.
- CMake: Stores the CMake configuration file.
- Common: Stores common code.
- HelloDavinci: Indicates the HelloDavinci project directory, including the .build file, source code file, graph configuration file, and README.md.
Retain the relative paths of the three folders.
The directory structure of the CMake files is as follows:
├──Ascend.cmake // device-side compilation chain ├──Euler.cmake // host-side compilation chain └──FindDDK.cmake // file for searching for the DDK module
The directory structure of HelloDavinci is as follows:
├── build // compilation folder, including the compilation on the host and device sides │ ├── CMakeLists.txt │ ├── device │ └── host ├── build.sh // compilation script ├── README.md //README.md ├── main.cpp // main function entry ├── include // HelloDavinci common module ├── DstEngine // DstEngine (host side) │ ├── DstEngine.cpp │ └── DstEngine.h ├── graph.config // graph configuration file ├── HelloDavinci // HelloDavinci engine (device side) │ ├── HelloDavinci.cpp │ └── HelloDavinci.h └── SrcEngine // SrcEngine engine (host side) │ ├── SrcEngine.cpp │ └── SrcEngine.h
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot