Updated on 2022-03-13 GMT+08:00

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.

Figure 1 File directory

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