ONE - On-device Neural Engine
Loading...
Searching...
No Matches
dummyV2-compile.cpp File Reference
#include <iostream>
#include <fstream>
#include <string>

Go to the source code of this file.

Functions

int main (int argc, char **argv)
 

Function Documentation

◆ main()

int main ( int  argc,
char **  argv 
)

dummyV2-compile only tests its interface rather than its functionality.

./dummyV2-compile -o ${OUTPUT_NAME} ${INPUT_NAME}

NOTE argv[3](INPUT_NAME) is not used here.

Definition at line 29 of file dummyV2-compile.cpp.

30{
31 if (argc != 4)
32 return EXIT_FAILURE;
33
34 std::string opt_o{"-O"};
35 std::string argv_1{argv[1]};
36
37 if (opt_o != argv_1)
38 {
39 std::cout << "dummyV2-compile: Invalid option" << std::endl;
40 return EXIT_FAILURE;
41 }
42
43 std::string output_name{argv[2]};
44 std::ofstream outfile(output_name);
45
46 outfile << "dummyV2-compile dummy output!!" << std::endl;
47
48 outfile.close();
49
50 return EXIT_SUCCESS;
51}