ONE - On-device Neural Engine
Loading...
Searching...
No Matches
dummyEnv-compile.cpp File Reference
#include <cstdlib>
#include <fstream>
#include <iostream>
#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 
)

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

./dummyEnv-compile ${DUMMY_OUTPUT}

Definition at line 28 of file dummyEnv-compile.cpp.

29{
30 if (argc != 2)
31 return EXIT_FAILURE;
32
33 std::string spm_size;
34
35 if (const char *env_p = std::getenv("SPM_SIZE"))
36 spm_size = std::string(env_p);
37
38 std::ofstream outfile(argv[1]);
39
40 outfile << "SPM_SIZE=" << spm_size;
41
42 outfile.close();
43
44 return EXIT_SUCCESS;
45}