SK-TDA4VM: make error: edgeai-tidl-tools setup for Processor SDK Linux Edgeai 10.00.00.08, running tidl python examples

Part Number: SK-TDA4VM

Tool/software:

I am trying to set up edgeai-tidl-tools by following this link https://github.com/TexasInstruments/edgeai-tidl-tools/tree/master?tab=readme-ov-file#setup . I have tried both the Docker setup as well as the Setup on X86_PC. In both cases when running make -j as mentioned in Compile and Validate on X86_PC step, I get the following error

/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp:265:10: error: 'struct sTIDLRT_Params_t' has no member named 'coreNum'
  265 |     prms.coreNum = 1;

The complete output for make is as follows

root@248decbc83a2:/home/root/build# make -j
Consolidate compiler generated dependencies of target pre_process
Consolidate compiler generated dependencies of target utils
Consolidate compiler generated dependencies of target utils_adv
Consolidate compiler generated dependencies of target post_process
[  3%] Building CXX object osrt_cpp/advanced_examples/utils/CMakeFiles/utils_adv.dir/src/arg_parsing.cpp.o
[  6%] Building CXX object osrt_cpp/advanced_examples/utils/CMakeFiles/utils_adv.dir/src/print_utils.cpp.o
[ 10%] Building CXX object osrt_cpp/pre_process/CMakeFiles/pre_process.dir/pre_process.cpp.o
[ 13%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/utility_functs.cpp.o
[ 16%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/edgeai_classnames.cpp.o
[ 20%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/model_info.cpp.o
[ 23%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/supportLib.cpp.o
[ 26%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/arg_parsing.cpp.o
[ 30%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/pbPlots.cpp.o
[ 33%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/ti_logger.cpp.o
[ 36%] Building CXX object osrt_cpp/post_process/CMakeFiles/post_process.dir/post_process.cpp.o
[ 40%] Linking CXX static library /home/root/lib/Release/libutils_adv.a
[ 40%] Built target utils_adv
[ 43%] Linking CXX static library /home/root/lib/Release/libpre_process.a
[ 43%] Built target pre_process
[ 46%] Linking CXX static library /home/root/lib/Release/libutils.a
[ 46%] Built target utils
[ 50%] Linking CXX static library /home/root/lib/Release/libpost_process.a
[ 50%] Built target post_process
[ 56%] Building CXX object osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/tfl_priority_scheduling.cpp.o
[ 56%] Building CXX object osrt_cpp/tfl/CMakeFiles/tfl_main.dir/tfl_main.cpp.o
[ 63%] Building CXX object osrt_cpp/ort/CMakeFiles/ort_main.dir/onnx_main.cpp.o
[ 63%] Building CXX object tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling_utils.cpp.o
[ 70%] Building CXX object tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling.cpp.o
[ 70%] Building CXX object tidlrt_cpp/CMakeFiles/tidlrt_clasification.dir/classification.cpp.o
[ 73%] Building CXX object osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/ort_priority_scheduling.cpp.o
[ 76%] Building CXX object osrt_cpp/dlr/CMakeFiles/dlr_main.dir/dlr_main.cpp.o
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp: In function 'void TIDL_createTable(std::ostream&, std::vector<std::__cxx11::basic_string<char> >, std::vector<std::vector<std::__cxx11::basic_string<char> > >, int32_t, std::vector<TIDL_table_align_t>, bool)':
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp:91:82: warning: format '%d' expects argument of type 'int', but argument 3 has type 'std::vector<std::__cxx11::basic_string<char> >::size_type' {aka 'long unsigned int'} [-Wformat=]
   91 |       printf("No of headers columns - %d does not match number of data column - %d\n", numColumn, d.size());
      |                                                                                 ~^                ~~~~~~~~
      |                                                                                  |                      |
      |                                                                                  int                    std::vector<std::__cxx11::basic_string<char> >::size_type {aka long unsigned int}
      |                                                                                 %ld
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp: In function 'void* infer(void*)':
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp:265:10: error: 'struct sTIDLRT_Params_t' has no member named 'coreNum'
  265 |     prms.coreNum = 1;
      |          ^~~~~~~
/home/root/examples/tidlrt_cpp/classification.cpp: In function 'void getModelNameromArtifactsDir(char*, char*, char*)':
/home/root/examples/tidlrt_cpp/classification.cpp:155:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  155 |   fscanf(fp, "%s", net_name);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/classification.cpp:164:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  164 |   fscanf(fp, "%s", io_name);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/classification.cpp: In function 'int32_t TIDLReadBinFromFile(const char*, void*, int32_t)':
/home/root/examples/tidlrt_cpp/classification.cpp:174:12: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  174 |       fread(addr, size, 1, fptr);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp: In function 'int runInference(Priority_settings*)':
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp:641:9: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  641 |   system("mkdir -p examples/tidlrt_cpp/advanced_examples/outputs");
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp:645:11: warning: ignoring return value of 'int system(const char*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  645 |     system("cd examples/tidlrt_cpp/advanced_examples/outputs; rm -f *; cd - > /dev/null");
      |     ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[2]: *** [tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/build.make:76: tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 80%] Linking CXX executable /home/root/bin/Release/tidlrt_clasification
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp: In function 'void getModelNameromArtifactsDir(char*, char*, char*)':
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp:226:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  226 |   fscanf(fp, "%s", net_name);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp:235:9: warning: ignoring return value of 'int fscanf(FILE*, const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
  235 |   fscanf(fp, "%s", io_name);
      |   ~~~~~~^~~~~~~~~~~~~~~~~~~
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp: In function 'int32_t TIDLReadBinFromFile(const char*, void*, int32_t)':
/home/root/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp:246:12: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  246 |       fread(addr, size, 1, fptr);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~
[ 80%] Built target tidlrt_clasification
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp: In function 'int tflite::main::getInvokeTime(tflite::main::tfl_model_struct*)':
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:250:47: warning: format '%d' expects argument of type 'int', but argument 3 has type 'double' [-Wformat=]
  250 |                 std::sprintf(pre_empt_char, "%d", FLT_MAX);
      |                                              ~^
      |                                               |
      |                                               int
      |                                              %f
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:251:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  251 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                 ^~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:251:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  251 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                     ^~~~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:251:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  251 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                           ^~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:251:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  251 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                                          ^~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:251:102: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  251 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                                                      ^~~~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:252:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  252 |                 char *values[] = {(char *)arg->modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0", (char *)prior_char, (char *)pre_empt_char};
      |                                                                                              ^~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:252:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  252 |                 char *values[] = {(char *)arg->modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0", (char *)prior_char, (char *)pre_empt_char};
      |                                                                                                    ^~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp: In function 'void* tflite::main::infer(void*)':
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:439:33: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  439 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                 ^~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:439:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  439 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                     ^~~~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:439:75: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  439 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                           ^~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:439:90: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  439 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                                          ^~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:439:102: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  439 |                 char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level", "priority", "max_pre_empt_delay"};
      |                                                                                                      ^~~~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:440:94: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  440 |                 char *values[] = {(char *)arg->modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0", (char *)prior_char, (char *)pre_empt_char};
      |                                                                                              ^~~~
/home/root/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:440:100: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  440 |                 char *values[] = {(char *)arg->modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0", (char *)prior_char, (char *)pre_empt_char};
      |                                                                                                    ^~~
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp: In function 'int tflite::main::runInference(tidl::modelInfo::ModelInfo*, tidl::arg_parsing::Settings*)':
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp:287:25: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  287 |         char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level"};
      |                         ^~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp:287:45: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  287 |         char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level"};
      |                                             ^~~~~~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp:287:67: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  287 |         char *keys[] = {"artifacts_folder", "num_tidl_subgraphs", "debug_level"};
      |                                                                   ^~~~~~~~~~~~~
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp:288:81: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  288 |         char *values[] = {(char *)modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0"};
      |                                                                                 ^~~~
/home/root/examples/osrt_cpp/tfl/tfl_main.cpp:288:87: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  288 |         char *values[] = {(char *)modelInfo->m_infConfig.artifactsPath.c_str(), "16", "0"};
      |                                                                                       ^~~
make[1]: *** [CMakeFiles/Makefile2:530: tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp: In function 'int onnx::main::getInvokeTime(onnx::main::ort_model_struct*)':
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:379:50: warning: ignoring return value of 'OrtStatus* OrtSessionsOptionsSetDefault_Tidl(c_api_tidl_options*)' declared with attribute 'warn_unused_result' [-Wunused-result]
  379 |                 OrtSessionsOptionsSetDefault_Tidl(options);
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp: In function 'int onnx::main::runInference(tidl::modelInfo::ModelInfo**, tidl::arg_parsing_adv::Settings*)':
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:995:49: warning: ignoring return value of function declared with attribute 'warn_unused_result' [-Wunused-result]
  995 |             Ort::GetApi().CreateThreadingOptions(&envOpts);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:996:53: warning: ignoring return value of function declared with attribute 'warn_unused_result' [-Wunused-result]
  996 |             Ort::GetApi().SetGlobalInterOpNumThreads(envOpts, 0);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:997:47: warning: ignoring return value of function declared with attribute 'warn_unused_result' [-Wunused-result]
  997 |             Ort::GetApi().SetGlobalSpinControl(envOpts, false);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~
/home/root/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:998:57: warning: ignoring return value of function declared with attribute 'warn_unused_result' [-Wunused-result]
  998 |             Ort::GetApi().CreateEnvWithGlobalThreadPools(ORT_LOGGING_LEVEL_WARNING, "test", envOpts, &environment);
      |             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[ 83%] Linking CXX executable /home/root/bin/Release/dlr_main
[ 86%] Linking CXX executable /home/root/bin/Release/tfl_main
[ 86%] Built target dlr_main
[ 90%] Linking CXX executable /home/root/bin/Release/tfl_priority_scheduling
[ 93%] Linking CXX executable /home/root/bin/Release/ort_priority_scheduling
[ 93%] Built target tfl_main
[ 96%] Linking CXX executable /home/root/bin/Release/ort_main
[ 96%] Built target ort_priority_scheduling
[ 96%] Built target tfl_priority_scheduling
[ 96%] Built target ort_main
make: *** [Makefile:136: all] Error 2

Next when I run source ./scripts/run_python_examples.sh the script starts running the models but gets stuck after a while with the following output, until I use ctrl+c to interrupt.

root@248decbc83a2:/home/root# source ./scripts/run_python_examples.sh 
X64 Architecture
1

Running 4 Models - ['cl-tfl-mobilenet_v1_1.0_224', 'ss-tfl-deeplabv3_mnv2_ade20k_float', 'od-tfl-ssd_mobilenet_v2_300_float', 'od-tfl-ssdlite_mobiledet_dsp_320x320_coco']


Running_Model :  cl-tfl-mobilenet_v1_1.0_224

Running_Model :  ss-tfl-deeplabv3_mnv2_ade20k_float

Running_Model :  od-tfl-ssd_mobilenet_v2_300_float

Running_Model :  od-tfl-ssdlite_mobiledet_dsp_320x320_coco

 Number of subgraphs:1 , 77 nodes delegated out of 77 nodes 
 

 Number of subgraphs:1 , 31 nodes delegated out of 31 nodes 
 
TIDL Meta PipeLine (Proto) File  :   

Number of OD backbone nodes = 0 
Size of odBackboneNodeIds = 0 
Warning : concat requires 4D input tensors - only 3 dims present..  Ignore if object detection network

 Number of subgraphs:1 , 126 nodes delegated out of 126 nodes 
 
TIDL Meta PipeLine (Proto) File  :   

Number of OD backbone nodes = 0 
Size of odBackboneNodeIds = 0 
Warning : concat requires 4D input tensors - only 3 dims present..  Ignore if object detection network

 Number of subgraphs:1 , 104 nodes delegated out of 104 nodes 
 
^CTraceback (most recent call last):
  File "/home/root/examples/osrt_python/tfl/tflrt_delegate.py", line 508, in <module>
    nthreads = join_one(nthreads)
  File "/home/root/examples/osrt_python/tfl/tflrt_delegate.py", line 475, in join_one
    sem.acquire()
KeyboardInterrupt

Is it supposed to run for a long time or is there some error which prevents further execution? I waited about 10-12 minutes before interrupting.
  • Hi,

    What version of edgeai-tidl-tools are you using? Could you try running edgeai-tidl-tools version 10_01_00_01 and SK-TDA4VM (AM68PA) Linux SDK version 10.01.00.04?

    Thank you,

    Fabiana

  • Hi,

    I am using Linux SDK version 10.00.00.08 with edgeai-tidl-tools tag 10_00_08_00  (efae610). I will try it with the latest versions of both as recommended by you and revert with the results.

    Thanks,

    Charanjit

  • Hi,

    Using the recommended versions worked. The version for egdeai-tidl-tools availabe was 10_01_00_02 though.

    Thank you,

    Charanjit

  • When running "python3 ./scripts/gen_test_report.py" mentioned under Benchmark on SOC (https://github.com/TexasInstruments/edgeai-tidl-tools/tree/master?tab=readme-ov-file#benchmark-on-ti-soc) I get the following at the end of the command

    Func Pass: 0
    Func Fail: 10
    
    Perf Pass: 4
    Perf Fail: 1
    
    Please refer to the output_images and output_binaries directory for generated outputs
    TEST DONE!

    In the beginning I also am getting "Target kernel, TIVX_CMD_NODE_CREATE failed for node TIDLNode".

    The whole output log and test report have been attached for reference.

    Do I have to compile something extra to run the examples given in the above link and https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/examples/osrt_python/README.md ?

    Thanks,

    Charanjit

    2068.test_report_am68pa.csv

    2068.gen_test_output.log

  • Hi Charanjit,

    I recommend you go through the Setup on X86_PC steps again. When running the setup script, be sure to include source in the command.

    Thank you,

    Fabiana

  • Hi Fabiana,

    X86_PC setup is not the same as the docker setup right? Does it make a difference whether I use the docker setup or X86_PC setup?

    I'll try the PC setup tomorrow and get back to you.

    Another question is, how does the PC setup influence the failed TIDLNode?

    I read through https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1084744/sk-tda4vm-tidl_rt_ovx-error-verifying-tidl-graph-failed running "source ./vision_app_init.sh" gets stuck at

    root@tda4vm-sk:/opt/vision_apps# source ./vision_apps_init.sh 
    root@tda4vm-sk:/opt/vision_apps# [MCU2_0]   3818.539325 s: CIO: Init ... Done !!!
    [MCU2_0]   3818.539394 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_0]   3818.539433 s: CPU is running FreeRTOS
    [MCU2_0]   3818.539457 s: APP: Init ... !!!
    [MCU2_0]   3818.539476 s: SCICLIENT: Init ... !!!
    [MCU2_0]   3818.539679 s: SCICLIENT: DMSC FW version [10.1.6--v10.01.06 (Fiery Fox)]
    [MCU2_0]   3818.539719 s: SCICLIENT: DMSC FW revision 0xa  
    [MCU2_0]   3818.539745 s: SCICLIENT: DMSC FW ABI revision 4.0
    [MCU2_0]   3818.539772 s: SCICLIENT: Init ... Done !!!
    [MCU2_0]   3818.539795 s: UDMA: Init ... !!!
    [MCU2_0]   3818.540936 s: UDMA: Init ... Done !!!
    [MCU2_0]   3818.540993 s: MEM: Init ... !!!
    [MCU2_0]   3818.541033 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ d9000000 of size 15728640 bytes !!!
    [MCU2_0]   3818.541091 s: MEM: Created heap (L3_MEM, id=1, flags=0x00000000) @ 3600000 of size 262144 bytes !!!
    [MCU2_0]   3818.541149 s: MEM: Created heap (DDR_CACHE_WT_MEM, id=7, flags=0x00000000) @ d9f00000 of size 1048576 bytes !!!
    [MCU2_0]   3818.541200 s: MEM: Init ... Done !!!
    [MCU2_0]   3818.541222 s: IPC: Init ... !!!
    [MCU2_0]   3818.541267 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_0]   3818.541303 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_0]   3833.079461 s: IPC: HLOS is ready !!!
    [MCU2_0]   3833.083812 s: IPC: Init ... Done !!!
    [MCU2_0]   3833.083881 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_0]   3833.206052 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_0]   3833.206095 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_0]   3833.206495 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_0]   3833.206554 s: FVID2: Init ... !!!
    [MCU2_0]   3833.206646 s: FVID2: Init ... Done !!!
    [MCU2_0]   3833.206686 s: VHWA: VPAC Init ... !!!
    [MCU2_0]   3833.206715 s: SCICLIENT: Sciclient_pmSetModuleState module=290 state=2
    [MCU2_0]   3833.206903 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_0]   3833.206938 s: VHWA: LDC Init ... !!!
    [MCU2_0]   3833.213729 s: VHWA: LDC Init ... Done !!!
    [MCU2_0]   3833.213791 s: VHWA: MSC Init ... !!!
    [MCU2_0]   3833.226150 s: VHWA: MSC Init ... Done !!!
    [MCU2_0]   3833.226209 s: VHWA: NF Init ... !!!
    [MCU2_0]   3833.227991 s: VHWA: NF Init ... Done !!!
    [MCU2_0]   3833.228049 s: VHWA: VISS Init ... !!!
    [MCU2_0]   3833.237339 s: VHWA: VISS Init ... Done !!!
    [MCU2_0]   3833.237400 s: VHWA: VPAC Init ... Done !!!
    [MCU2_0]   3833.237440 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    [MCU2_0]   3833.237477 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    [MCU2_0]   3833.237509 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    [MCU2_0]   3833.238746 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink on target MCU2-0
    [MCU2_0]   3833.238854 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source on target MCU2-0
    [MCU2_0]   3833.238932 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink2 on target MCU2-0
    [MCU2_0]   3833.239002 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source2 on target MCU2-0
    [MCU2_0]   3833.239074 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_intermediate on target MCU2-0
    [MCU2_0]   3833.239162 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_intermediate_2 on target MCU2-0
    [MCU2_0]   3833.239241 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_error on target MCU2-0
    [MCU2_0]   3833.239318 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_obj_array on target MCU2-0
    [MCU2_0]   3833.239393 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_sink_obj_array on target MCU2-0
    [MCU2_0]   3833.239464 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_intermediate on target MCU2-0
    [MCU2_0]   3833.239539 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_source on target MCU2-0
    [MCU2_0]   3833.239610 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_sink on target MCU2-0
    [MCU2_0]   3833.239679 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target MCU2-0
    [MCU2_0]   3833.239751 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.image_intermediate on target MCU2-0
    [MCU2_0]   3833.239825 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.cmd_timeout_test on target MCU2-0
    [MCU2_0]   3833.239897 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.tiovx_overhead on target MCU2-0
    [MCU2_0]   3833.240093 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MCU2-0 
    [MCU2_0]   3833.240268 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target VPAC_NF 
    [MCU2_0]   3833.240410 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target VPAC_LDC1 
    [MCU2_0]   3833.240554 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target VPAC_MSC1 
    [MCU2_0]   3833.240700 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target VPAC_MSC2 
    [MCU2_0]   3833.240921 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target VPAC_VISS1 
    [MCU2_0]   3833.241111 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE1 
    [MCU2_0]   3833.241305 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE2 
    [MCU2_0]   3833.241481 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE3 
    [MCU2_0]   3833.241659 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE4 
    [MCU2_0]   3833.241838 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE5 
    [MCU2_0]   3833.242004 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE6 
    [MCU2_0]   3833.242188 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE7 
    [MCU2_0]   3833.242358 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CAPTURE8 
    [MCU2_0]   3833.242527 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DISPLAY1 
    [MCU2_0]   3833.242698 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DISPLAY2 
    [MCU2_0]   3833.242855 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target CSITX 
    [MCU2_0]   3833.243015 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSS_M2M1 
    [MCU2_0]   3833.243189 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSS_M2M2 
    [MCU2_0]   3833.243358 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSS_M2M3 
    [MCU2_0]   3833.243518 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSS_M2M4 
    [MCU2_0]   3833.243573 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    [MCU2_0]   3833.243610 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    [MCU2_0]   3833.243639 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_0]   3833.258613 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_0]   3833.258669 s: VISS REMOTE SERVICE: Init ... !!!
    [MCU2_0]   3833.258740 s: VISS REMOTE SERVICE: Init ... Done !!!
    [MCU2_0]   3833.258769 s: UDMA Copy: Init ... !!!
    [MCU2_0]   3833.260375 s: UDMA Copy: Init ... Done !!!
    [MCU2_0]   3833.260436 s: APP: Init ... Done !!!
    [MCU2_0]   3833.260464 s: APP: Run ... !!!
    [MCU2_0]   3833.260487 s: IPC: Starting echo test ...
    [MCU2_0]   3833.260747 s: APP: Run ... Done !!!
    [MCU2_0]   3833.261977 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[.] C66X_1[P] C66X_2[.] C7X_1[.] 
    [MCU2_0]   3833.262063 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[.] C66X_1[P] C66X_2[P] C7X_1[.] 
    [MCU2_0]   3833.262143 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[.] C66X_1[P] C66X_2[P] C7X_1[P] 
    [MCU2_0]   3833.262214 s: IPC: Echo status: mpu1_0[x] mcu2_0[s] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[P] 
    [MCU2_1]   3818.679012 s: CIO: Init ... Done !!!
    [MCU2_1]   3818.679084 s: ### CPU Frequency = 1000000000 Hz
    [MCU2_1]   3818.679122 s: CPU is running FreeRTOS
    [MCU2_1]   3818.679146 s: APP: Init ... !!!
    [MCU2_1]   3818.679167 s: SCICLIENT: Init ... !!!
    [MCU2_1]   3818.679378 s: SCICLIENT: DMSC FW version [10.1.6--v10.01.06 (Fiery Fox)]
    [MCU2_1]   3818.679418 s: SCICLIENT: DMSC FW revision 0xa  
    [MCU2_1]   3818.679445 s: SCICLIENT: DMSC FW ABI revision 4.0
    [MCU2_1]   3818.679470 s: SCICLIENT: Init ... Done !!!
    [MCU2_1]   3818.679492 s: UDMA: Init ... !!!
    [MCU2_1]   3818.680691 s: UDMA: Init ... Done !!!
    [MCU2_1]   3818.680754 s: MEM: Init ... !!!
    [MCU2_1]   3818.680795 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ da000000 of size 16777216 bytes !!!
    [MCU2_1]   3818.680864 s: MEM: Init ... Done !!!
    [MCU2_1]   3818.680891 s: IPC: Init ... !!!
    [MCU2_1]   3818.680941 s: IPC: 6 CPUs participating in IPC !!!
    [MCU2_1]   3818.680980 s: IPC: Waiting for HLOS to be ready ... !!!
    [MCU2_1]   3833.201550 s: IPC: HLOS is ready !!!
    [MCU2_1]   3833.205942 s: IPC: Init ... Done !!!
    [MCU2_1]   3833.206009 s: APP: Syncing with 5 CPUs ... !!!
    [MCU2_1]   3833.206051 s: APP: Syncing with 5 CPUs ... Done !!!
    [MCU2_1]   3833.206079 s: REMOTE_SERVICE: Init ... !!!
    [MCU2_1]   3833.206512 s: REMOTE_SERVICE: Init ... Done !!!
    [MCU2_1]   3833.206573 s: FVID2: Init ... !!!
    [MCU2_1]   3833.206662 s: FVID2: Init ... Done !!!
    [MCU2_1]   3833.206705 s: VHWA: DMPAC: Init ... !!!
    [MCU2_1]   3833.206729 s: SCICLIENT: Sciclient_pmSetModuleState module=48 state=2
    [MCU2_1]   3833.207014 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]   3833.207054 s: SCICLIENT: Sciclient_pmSetModuleState module=305 state=2
    [MCU2_1]   3833.207193 s: SCICLIENT: Sciclient_pmSetModuleState success
    [MCU2_1]   3833.207225 s: VHWA: DOF Init ... !!!
    [MCU2_1]   3833.217572 s: VHWA: DOF Init ... Done !!!
    [MCU2_1]   3833.217642 s: VHWA: SDE Init ... !!!
    [MCU2_1]   3833.221225 s: VHWA: SDE Init ... Done !!!
    [MCU2_1]   3833.221281 s: VHWA: DMPAC: Init ... Done !!!
    [MCU2_1]   3833.221326 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    [MCU2_1]   3833.221360 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    [MCU2_1]   3833.221391 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    [MCU2_1]   3833.222625 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink on target MCU2-1
    [MCU2_1]   3833.222745 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source on target MCU2-1
    [MCU2_1]   3833.222839 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink2 on target MCU2-1
    [MCU2_1]   3833.222921 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source2 on target MCU2-1
    [MCU2_1]   3833.222997 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_intermediate on target MCU2-1
    [MCU2_1]   3833.223072 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_intermediate_2 on target MCU2-1
    [MCU2_1]   3833.223148 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_error on target MCU2-1
    [MCU2_1]   3833.223222 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_obj_array on target MCU2-1
    [MCU2_1]   3833.223298 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_sink_obj_array on target MCU2-1
    [MCU2_1]   3833.223368 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_intermediate on target MCU2-1
    [MCU2_1]   3833.223440 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_source on target MCU2-1
    [MCU2_1]   3833.223509 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_sink on target MCU2-1
    [MCU2_1]   3833.223580 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target MCU2-1
    [MCU2_1]   3833.223650 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.image_intermediate on target MCU2-1
    [MCU2_1]   3833.223722 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.cmd_timeout_test on target MCU2-1
    [MCU2_1]   3833.223794 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.tiovx_overhead on target MCU2-1
    [MCU2_1]   3833.224014 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MCU2-1 
    [MCU2_1]   3833.224180 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DMPAC_SDE 
    [MCU2_1]   3833.224331 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DMPAC_DOF 
    [MCU2_1]   3833.224383 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    [MCU2_1]   3833.224420 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    [MCU2_1]   3833.224447 s: APP: OpenVX Target kernel init ... !!!
    [MCU2_1]   3833.224705 s: APP: OpenVX Target kernel init ... Done !!!
    [MCU2_1]   3833.224744 s: UDMA Copy: Init ... !!!
    [MCU2_1]   3833.226958 s: UDMA Copy: Init ... Done !!!
    [MCU2_1]   3833.227026 s: APP: Init ... Done !!!
    [MCU2_1]   3833.227053 s: APP: Run ... !!!
    [MCU2_1]   3833.227074 s: IPC: Starting echo test ...
    [MCU2_1]   3833.227309 s: APP: Run ... Done !!!
    [MCU2_1]   3833.228326 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[.] C7X_1[.] 
    [MCU2_1]   3833.228426 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[.] 
    [MCU2_1]   3833.228504 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[P] 
    [MCU2_1]   3833.261828 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[s] C66X_1[P] C66X_2[P] C7X_1[P] 
    [C6x_1 ]   3819.008566 s: CIO: Init ... Done !!!
    [C6x_1 ]   3819.008592 s: ### CPU Frequency = 1350000000 Hz
    [C6x_1 ]   3819.008603 s: CPU is running FreeRTOS
    [C6x_1 ]   3819.008612 s: APP: Init ... !!!
    [C6x_1 ]   3819.008620 s: SCICLIENT: Init ... !!!
    [C6x_1 ]   3819.008799 s: SCICLIENT: DMSC FW version [10.1.6--v10.01.06 (Fiery Fox)]
    [C6x_1 ]   3819.008812 s: SCICLIENT: DMSC FW revision 0xa  
    [C6x_1 ]   3819.008821 s: SCICLIENT: DMSC FW ABI revision 4.0
    [C6x_1 ]   3819.008832 s: SCICLIENT: Init ... Done !!!
    [C6x_1 ]   3819.008841 s: UDMA: Init ... !!!
    [C6x_1 ]   3819.010181 s: UDMA: Init ... Done !!!
    [C6x_1 ]   3819.010201 s: MEM: Init ... !!!
    [C6x_1 ]   3819.010215 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ dc000000 of size 16777216 bytes !!!
    [C6x_1 ]   3819.010235 s: MEM: Init ... Done !!!
    [C6x_1 ]   3819.010244 s: IPC: Init ... !!!
    [C6x_1 ]   3819.010266 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_1 ]   3819.010282 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_1 ]   3832.638674 s: IPC: HLOS is ready !!!
    [C6x_1 ]   3832.642415 s: IPC: Init ... Done !!!
    [C6x_1 ]   3832.642456 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_1 ]   3833.206049 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_1 ]   3833.206063 s: REMOTE_SERVICE: Init ... !!!
    [C6x_1 ]   3833.206470 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_1 ]   3833.206505 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    [C6x_1 ]   3833.206521 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    [C6x_1 ]   3833.206534 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    [C6x_1 ]   3833.207151 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel vx_tutorial_graph.phase_rgb on target DSP-1
    [C6x_1 ]   3833.207191 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink on target DSP-1
    [C6x_1 ]   3833.207222 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source on target DSP-1
    [C6x_1 ]   3833.207255 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink2 on target DSP-1
    [C6x_1 ]   3833.207288 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source2 on target DSP-1
    [C6x_1 ]   3833.207323 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_intermediate on target DSP-1
    [C6x_1 ]   3833.207354 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_intermediate_2 on target DSP-1
    [C6x_1 ]   3833.207392 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_error on target DSP-1
    [C6x_1 ]   3833.207424 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_obj_array on target DSP-1
    [C6x_1 ]   3833.207469 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_sink_obj_array on target DSP-1
    [C6x_1 ]   3833.207507 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_intermediate on target DSP-1
    [C6x_1 ]   3833.207541 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_source on target DSP-1
    [C6x_1 ]   3833.207577 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_sink on target DSP-1
    [C6x_1 ]   3833.207609 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP-1
    [C6x_1 ]   3833.207642 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.image_intermediate on target DSP-1
    [C6x_1 ]   3833.207674 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP-1
    [C6x_1 ]   3833.207707 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.tiovx_overhead on target DSP-1
    [C6x_1 ]   3833.207959 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    [C6x_1 ]   3833.207978 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    [C6x_1 ]   3833.207989 s: APP: OpenVX Target kernel init ... !!!
    [C6x_1 ]   3833.208364 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_1 ]   3833.208389 s: UDMA Copy: Init ... !!!
    [C6x_1 ]   3833.212604 s: UDMA Copy: Init ... Done !!!
    [C6x_1 ]   3833.212624 s: APP: Init ... Done !!!
    [C6x_1 ]   3833.212633 s: APP: Run ... !!!
    [C6x_1 ]   3833.212642 s: IPC: Starting echo test ...
    [C6x_1 ]   3833.213160 s: APP: Run ... Done !!!
    [C6x_1 ]   3833.213506 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[x] C7X_1[P] 
    [C6x_1 ]   3833.213705 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[s] C66X_2[P] C7X_1[P] 
    [C6x_1 ]   3833.228089 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[s] C66X_2[P] C7X_1[P] 
    [C6x_1 ]   3833.261685 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[s] C66X_2[P] C7X_1[P] 
    [C6x_2 ]   3819.179265 s: CIO: Init ... Done !!!
    [C6x_2 ]   3819.179294 s: ### CPU Frequency = 1350000000 Hz
    [C6x_2 ]   3819.179306 s: CPU is running FreeRTOS
    [C6x_2 ]   3819.179314 s: APP: Init ... !!!
    [C6x_2 ]   3819.179324 s: SCICLIENT: Init ... !!!
    [C6x_2 ]   3819.179501 s: SCICLIENT: DMSC FW version [10.1.6--v10.01.06 (Fiery Fox)]
    [C6x_2 ]   3819.179515 s: SCICLIENT: DMSC FW revision 0xa  
    [C6x_2 ]   3819.179526 s: SCICLIENT: DMSC FW ABI revision 4.0
    [C6x_2 ]   3819.179537 s: SCICLIENT: Init ... Done !!!
    [C6x_2 ]   3819.179547 s: UDMA: Init ... !!!
    [C6x_2 ]   3819.180901 s: UDMA: Init ... Done !!!
    [C6x_2 ]   3819.180923 s: MEM: Init ... !!!
    [C6x_2 ]   3819.180937 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ e0000000 of size 16777216 bytes !!!
    [C6x_2 ]   3819.180957 s: MEM: Init ... Done !!!
    [C6x_2 ]   3819.180967 s: IPC: Init ... !!!
    [C6x_2 ]   3819.180990 s: IPC: 6 CPUs participating in IPC !!!
    [C6x_2 ]   3819.181008 s: IPC: Waiting for HLOS to be ready ... !!!
    [C6x_2 ]   3832.751521 s: IPC: HLOS is ready !!!
    [C6x_2 ]   3832.754948 s: IPC: Init ... Done !!!
    [C6x_2 ]   3832.754978 s: APP: Syncing with 5 CPUs ... !!!
    [C6x_2 ]   3833.206049 s: APP: Syncing with 5 CPUs ... Done !!!
    [C6x_2 ]   3833.206063 s: REMOTE_SERVICE: Init ... !!!
    [C6x_2 ]   3833.206477 s: REMOTE_SERVICE: Init ... Done !!!
    [C6x_2 ]   3833.206514 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    [C6x_2 ]   3833.206529 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    [C6x_2 ]   3833.206542 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    [C6x_2 ]   3833.207171 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel vx_tutorial_graph.phase_rgb on target DSP-2
    [C6x_2 ]   3833.207208 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink on target DSP-2
    [C6x_2 ]   3833.207244 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source on target DSP-2
    [C6x_2 ]   3833.207276 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink2 on target DSP-2
    [C6x_2 ]   3833.207313 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source2 on target DSP-2
    [C6x_2 ]   3833.207345 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_intermediate on target DSP-2
    [C6x_2 ]   3833.207383 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_intermediate_2 on target DSP-2
    [C6x_2 ]   3833.207416 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_error on target DSP-2
    [C6x_2 ]   3833.207451 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_obj_array on target DSP-2
    [C6x_2 ]   3833.207484 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_sink_obj_array on target DSP-2
    [C6x_2 ]   3833.207519 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_intermediate on target DSP-2
    [C6x_2 ]   3833.207555 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_source on target DSP-2
    [C6x_2 ]   3833.207588 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_sink on target DSP-2
    [C6x_2 ]   3833.207622 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP-2
    [C6x_2 ]   3833.207654 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.image_intermediate on target DSP-2
    [C6x_2 ]   3833.207687 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP-2
    [C6x_2 ]   3833.207720 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.tiovx_overhead on target DSP-2
    [C6x_2 ]   3833.207975 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    [C6x_2 ]   3833.207992 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    [C6x_2 ]   3833.208004 s: APP: OpenVX Target kernel init ... !!!
    [C6x_2 ]   3833.208379 s: APP: OpenVX Target kernel init ... Done !!!
    [C6x_2 ]   3833.208405 s: UDMA Copy: Init ... !!!
    [C6x_2 ]   3833.212720 s: UDMA Copy: Init ... Done !!!
    [C6x_2 ]   3833.212741 s: APP: Init ... Done !!!
    [C6x_2 ]   3833.212750 s: APP: Run ... !!!
    [C6x_2 ]   3833.212759 s: IPC: Starting echo test ...
    [C6x_2 ]   3833.213360 s: APP: Run ... Done !!!
    [C6x_2 ]   3833.213706 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[.] C66X_2[s] C7X_1[P] 
    [C6x_2 ]   3833.213742 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[s] C7X_1[P] 
    [C6x_2 ]   3833.228116 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[s] C7X_1[P] 
    [C6x_2 ]   3833.261708 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[P] C66X_2[s] C7X_1[P] 
    [C7x_1 ]   3819.433820 s: CIO: Init ... Done !!!
    [C7x_1 ]   3819.433835 s: ### CPU Frequency = 1000000000 Hz
    [C7x_1 ]   3819.433848 s: CPU is running FreeRTOS
    [C7x_1 ]   3819.433857 s: APP: Init ... !!!
    [C7x_1 ]   3819.433865 s: SCICLIENT: Init ... !!!
    [C7x_1 ]   3819.434046 s: SCICLIENT: DMSC FW version [10.1.6--v10.01.06 (Fiery Fox)]
    [C7x_1 ]   3819.434061 s: SCICLIENT: DMSC FW revision 0xa  
    [C7x_1 ]   3819.434072 s: SCICLIENT: DMSC FW ABI revision 4.0
    [C7x_1 ]   3819.434083 s: SCICLIENT: Init ... Done !!!
    [C7x_1 ]   3819.434093 s: UDMA: Init ... !!!
    [C7x_1 ]   3819.435102 s: UDMA: Init ... Done !!!
    [C7x_1 ]   3819.435115 s: MEM: Init ... !!!
    [C7x_1 ]   3819.435127 s: MEM: Created heap (DDR_LOCAL_MEM, id=0, flags=0x00000004) @ 117000000 of size 268435456 bytes !!!
    [C7x_1 ]   3819.435149 s: MEM: Init ... Done !!!
    [C7x_1 ]   3819.435158 s: IPC: Init ... !!!
    [C7x_1 ]   3819.435173 s: IPC: 6 CPUs participating in IPC !!!
    [C7x_1 ]   3819.435187 s: IPC: Waiting for HLOS to be ready ... !!!
    [C7x_1 ]   3832.904330 s: IPC: HLOS is ready !!!
    [C7x_1 ]   3832.906151 s: IPC: Init ... Done !!!
    [C7x_1 ]   3832.906165 s: APP: Syncing with 5 CPUs ... !!!
    [C7x_1 ]   3833.206051 s: APP: Syncing with 5 CPUs ... Done !!!
    [C7x_1 ]   3833.206069 s: REMOTE_SERVICE: Init ... !!!
    [C7x_1 ]   3833.206211 s: REMOTE_SERVICE: Init ... Done !!!
    [C7x_1 ]   3833.206233 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
    [C7x_1 ]   3833.206249 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
    [C7x_1 ]   3833.206265 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
    [C7x_1 ]   3833.206446 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink on target DSP_C7-1
    [C7x_1 ]   3833.206500 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source on target DSP_C7-1
    [C7x_1 ]   3833.206540 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_sink2 on target DSP_C7-1
    [C7x_1 ]   3833.206577 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_source2 on target DSP_C7-1
    [C7x_1 ]   3833.206614 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.scalar_intermediate on target DSP_C7-1
    [C7x_1 ]   3833.206652 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_intermediate_2 on target DSP_C7-1
    [C7x_1 ]   3833.206691 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_error on target DSP_C7-1
    [C7x_1 ]   3833.206734 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_source_obj_array on target DSP_C7-1
    [C7x_1 ]   3833.206774 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.scalar_sink_obj_array on target DSP_C7-1
    [C7x_1 ]   3833.206812 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_intermediate on target DSP_C7-1
    [C7x_1 ]   3833.206849 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_source on target DSP_C7-1
    [C7x_1 ]   3833.206886 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.pyramid_sink on target DSP_C7-1
    [C7x_1 ]   3833.206922 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP_C7-1
    [C7x_1 ]   3833.206959 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.capture.image_intermediate on target DSP_C7-1
    [C7x_1 ]   3833.206996 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.test_target on target DSP_C7-1
    [C7x_1 ]   3833.207032 s:  VX_ZONE_INFO: [ownAddTargetKernelInternal:162] registered kernel com.ti.test_kernels.tiovx_overhead on target DSP_C7-1
    [C7x_1 ]   3833.207115 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1 
    [C7x_1 ]   3833.207183 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_2 
    [C7x_1 ]   3833.207254 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_3 
    [C7x_1 ]   3833.207323 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_4 
    [C7x_1 ]   3833.207392 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_5 
    [C7x_1 ]   3833.207461 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_6 
    [C7x_1 ]   3833.207526 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_7 
    [C7x_1 ]   3833.207593 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target DSP_C7-1_PRI_8 
    [C7x_1 ]   3833.207616 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
    [C7x_1 ]   3833.207633 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    [C7x_1 ]   3833.207645 s: APP: OpenVX Target kernel init ... !!!
    [C7x_1 ]   3833.207824 s: APP: OpenVX Target kernel init ... Done !!!
    [C7x_1 ]   3833.207839 s: APP: Init ... Done !!!
    [C7x_1 ]   3833.207848 s: APP: Run ... !!!
    [C7x_1 ]   3833.207857 s: IPC: Starting echo test ...
    [C7x_1 ]   3833.207954 s: APP: Run ... Done !!!
    [C7x_1 ]   3833.213509 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[.] C7X_1[s] 
    [C7x_1 ]   3833.213700 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[x] C66X_1[P] C66X_2[P] C7X_1[s] 
    [C7x_1 ]   3833.228138 s: IPC: Echo status: mpu1_0[x] mcu2_0[x] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[s] 
    [C7x_1 ]   3833.261750 s: IPC: Echo status: mpu1_0[x] mcu2_0[P] mcu2_1[P] C66X_1[P] C66X_2[P] C7X_1[s]

  • Hi Fabiana,

    when going through the X86_PC setup, I first got the following output when running "source ./setup.sh"

    groly@groly-dstream:~/ti/edgeai-tidl-tools$ source ./setup.sh 
    Defaulting to CPU tools
    X64 Architecture
    Installing python packages...
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: pybind11[global] in /home/groly/.local/lib/python3.10/site-packages (2.13.6)
    Requirement already satisfied: pybind11-global==2.13.6 in /home/groly/.local/lib/python3.10/site-packages (from pybind11[global]) (2.13.6)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    Defaulting to user installation because normal site-packages is not writeable
    Collecting https://github.com/TexasInstruments/edgeai-caffe2onnx/archive/refs/heads/tidl.zip (from -r ./requirements_pc.txt (line 17))
      Using cached https://github.com/TexasInstruments/edgeai-caffe2onnx/archive/refs/heads/tidl.zip
      Preparing metadata (setup.py) ... error
      error: subprocess-exited-with-error
      
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [41 lines of output]
          running egg_info
          creating /tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info
          writing /tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/PKG-INFO
          writing dependency_links to /tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/dependency_links.txt
          writing requirements to /tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/requires.txt
          writing top-level names to /tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/top_level.txt
          writing manifest file '/tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/SOURCES.txt'
          reading manifest file '/tmp/pip-pip-egg-info-s82zm0z2/caffe2onnx.egg-info/SOURCES.txt'
          adding license file 'LICENSE'
          Traceback (most recent call last):
            File "<string>", line 2, in <module>
            File "<pip-setuptools-caller>", line 34, in <module>
            File "/tmp/pip-req-build-nkqbk38j/setup.py", line 20, in <module>
              setuptools.setup(
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
              return distutils.core.setup(**attrs)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
              return run_commands(dist)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
              dist.run_commands()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
              self.run_command(cmd)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
              super().run_command(command)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
              cmd_obj.run()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
              self.find_sources()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
              mm.run()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run
              self.prune_file_list()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/sdist.py", line 162, in prune_file_list
              super().prune_file_list()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 380, in prune_file_list
              base_dir = self.distribution.get_fullname()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 272, in get_fullname
              return _distribution_fullname(self.get_name(), self.get_version())
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 290, in _distribution_fullname
              canonicalize_version(version, strip_trailing_zero=False),
          TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> See above for output.
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: pybind11[global] in /home/groly/.local/lib/python3.10/site-packages (2.13.6)
    Requirement already satisfied: pybind11-global==2.13.6 in /home/groly/.local/lib/python3.10/site-packages (from pybind11[global]) (2.13.6)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    Installing python osrt packages...
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: pip in /home/groly/.local/lib/python3.10/site-packages (25.0)
    Requirement already satisfied: setuptools in /home/groly/.local/lib/python3.10/site-packages (75.8.0)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    Installing python packages...
    pip3 install --no-input wheel
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.37.1)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    pip3 install --no-input numpy==1.23.0
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: numpy==1.23.0 in /home/groly/.local/lib/python3.10/site-packages (1.23.0)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    pip3 install --no-input protobuf==3.20.3
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: protobuf==3.20.3 in /home/groly/.local/lib/python3.10/site-packages (3.20.3)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    pip3 install --no-input onnx==1.14.0
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: onnx==1.14.0 in /home/groly/.local/lib/python3.10/site-packages (1.14.0)
    Requirement already satisfied: numpy in /home/groly/.local/lib/python3.10/site-packages (from onnx==1.14.0) (1.23.0)
    Requirement already satisfied: protobuf>=3.20.2 in /home/groly/.local/lib/python3.10/site-packages (from onnx==1.14.0) (3.20.3)
    Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/groly/.local/lib/python3.10/site-packages (from onnx==1.14.0) (4.12.2)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    pip3 install --no-input onnxsim==0.4.35
    Defaulting to user installation because normal site-packages is not writeable
    Requirement already satisfied: onnxsim==0.4.35 in /home/groly/.local/lib/python3.10/site-packages (0.4.35)
    Requirement already satisfied: onnx in /home/groly/.local/lib/python3.10/site-packages (from onnxsim==0.4.35) (1.14.0)
    Requirement already satisfied: rich in /home/groly/.local/lib/python3.10/site-packages (from onnxsim==0.4.35) (13.9.3)
    Requirement already satisfied: numpy in /home/groly/.local/lib/python3.10/site-packages (from onnx->onnxsim==0.4.35) (1.23.0)
    Requirement already satisfied: protobuf>=3.20.2 in /home/groly/.local/lib/python3.10/site-packages (from onnx->onnxsim==0.4.35) (3.20.3)
    Requirement already satisfied: typing-extensions>=3.6.2.1 in /home/groly/.local/lib/python3.10/site-packages (from onnx->onnxsim==0.4.35) (4.12.2)
    Requirement already satisfied: markdown-it-py>=2.2.0 in /home/groly/.local/lib/python3.10/site-packages (from rich->onnxsim==0.4.35) (3.0.0)
    Requirement already satisfied: pygments<3.0.0,>=2.13.0 in /home/groly/.local/lib/python3.10/site-packages (from rich->onnxsim==0.4.35) (2.18.0)
    Requirement already satisfied: mdurl~=0.1 in /home/groly/.local/lib/python3.10/site-packages (from markdown-it-py>=2.2.0->rich->onnxsim==0.4.35) (0.1.2)
    WARNING: Error parsing dependencies of send2trash: Expected matching RIGHT_PARENTHESIS for LEFT_PARENTHESIS, after version specifier
        sys-platform (=="darwin") ; extra == 'objc'
                     ~^
    pip3 install --no-input git+https://github.com/NVIDIA/TensorRT@release/8.5#subdirectory=tools/onnx-graphsurgeon
    Defaulting to user installation because normal site-packages is not writeable
    Collecting git+https://github.com/NVIDIA/TensorRT@release/8.5#subdirectory=tools/onnx-graphsurgeon
      Cloning https://github.com/NVIDIA/TensorRT (to revision release/8.5) to /tmp/pip-req-build-zqtd_2m0
      Running command git clone --filter=blob:none --quiet https://github.com/NVIDIA/TensorRT /tmp/pip-req-build-zqtd_2m0
      Running command git checkout -b release/8.5 --track origin/release/8.5
      Switched to a new branch 'release/8.5'
      Branch 'release/8.5' set up to track remote branch 'release/8.5' from 'origin'.
      Resolved https://github.com/NVIDIA/TensorRT to commit 68b5072fdb9df6b6edab1392b02a705394b2e906
      Running command git submodule update --init --recursive -q
      Preparing metadata (setup.py) ... error
      error: subprocess-exited-with-error
      
      × python setup.py egg_info did not run successfully.
      │ exit code: 1
      ╰─> [43 lines of output]
          running egg_info
          creating /tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info
          writing /tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/PKG-INFO
          writing dependency_links to /tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/dependency_links.txt
          writing requirements to /tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/requires.txt
          writing top-level names to /tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/top_level.txt
          writing manifest file '/tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/SOURCES.txt'
          reading manifest file '/tmp/pip-pip-egg-info-tb6h369h/onnx_graphsurgeon.egg-info/SOURCES.txt'
          adding license file 'LICENSE'
          Traceback (most recent call last):
            File "<string>", line 2, in <module>
            File "<pip-setuptools-caller>", line 34, in <module>
            File "/tmp/pip-req-build-zqtd_2m0/tools/onnx-graphsurgeon/setup.py", line 63, in <module>
              main()
            File "/tmp/pip-req-build-zqtd_2m0/tools/onnx-graphsurgeon/setup.py", line 38, in main
              setup(
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
              return distutils.core.setup(**attrs)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
              return run_commands(dist)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
              dist.run_commands()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
              self.run_command(cmd)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
              super().run_command(command)
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1002, in run_command
              cmd_obj.run()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 312, in run
              self.find_sources()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 320, in find_sources
              mm.run()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/egg_info.py", line 548, in run
              self.prune_file_list()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/sdist.py", line 162, in prune_file_list
              super().prune_file_list()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/command/sdist.py", line 380, in prune_file_list
              base_dir = self.distribution.get_fullname()
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 272, in get_fullname
              return _distribution_fullname(self.get_name(), self.get_version())
            File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 290, in _distribution_fullname
              canonicalize_version(version, strip_trailing_zero=False),
          TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
    error: metadata-generation-failed
    
    × Encountered error while generating package metadata.
    ╰─> See above for output.
    
    note: This is an issue with the package mentioned above, not pip.
    hint: See above for details.
    installing the onnx graph optimization toolkit...
    running develop
    /home/groly/.local/lib/python3.10/site-packages/setuptools/command/develop.py:41: EasyInstallDeprecationWarning: easy_install command is deprecated.
    !!
    
            ********************************************************************************
            Please avoid running ``setup.py`` and ``easy_install``.
            Instead, use pypa/build, pypa/installer or other
            standards-based tools.
    
            See https://github.com/pypa/setuptools/issues/917 for details.
            ********************************************************************************
    
    !!
      easy_install.initialize_options(self)
    Traceback (most recent call last):
      File "/home/groly/ti/edgeai-tidl-tools/scripts/./setup.py", line 3, in <module>
        setup(
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/__init__.py", line 117, in setup
        return distutils.core.setup(**attrs)
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 186, in setup
        return run_commands(dist)
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/core.py", line 202, in run_commands
        dist.run_commands()
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 983, in run_commands
        self.run_command(cmd)
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/dist.py", line 999, in run_command
        super().run_command(command)
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/dist.py", line 1001, in run_command
        cmd_obj.ensure_finalized()
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_distutils/cmd.py", line 124, in ensure_finalized
        self.finalize_options()
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/develop.py", line 51, in finalize_options
        easy_install.finalize_options(self)
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/command/easy_install.py", line 251, in finalize_options
        'dist_fullname': self.distribution.get_fullname(),
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 272, in get_fullname
        return _distribution_fullname(self.get_name(), self.get_version())
      File "/home/groly/.local/lib/python3.10/site-packages/setuptools/_core_metadata.py", line 290, in _distribution_fullname
        canonicalize_version(version, strip_trailing_zero=False),
    TypeError: canonicalize_version() got an unexpected keyword argument 'strip_trailing_zero'
    skipping gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu download: found /home/groly/ti/edgeai-tidl-tools/gcc-arm-9.2-2019.12-x86_64-aarch64-none-linux-gnu
    CGT7X_ROOT already set to /home/groly/ti/edgeai-tidl-tools/ti-cgt-c7000_3.1.0.LTS, skipping download
    Installing:onnxruntime
    Installing:tflite_2.12
    Installing:opencv
    Installing:dlr

    The problem was solved by using a python venv.

    But when compiling in the build folder, I get the following error. Inside the docker this error does not occur.

    groly@groly-dstream:~/ti/edgeai-tidl-tools/build$ cmake ../examples && make -j && cd ..
    -- The C compiler identification is GNU 11.4.0
    -- The CXX compiler identification is GNU 11.4.0
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    -- Check for working C compiler: /usr/bin/cc - skipped
    -- Detecting C compile features
    -- Detecting C compile features - done
    -- Detecting CXX compiler ABI info
    -- Detecting CXX compiler ABI info - done
    -- Check for working CXX compiler: /usr/bin/c++ - skipped
    -- Detecting CXX compile features
    -- Detecting CXX compile features - done
    -- Detected processor: x86_64
    -- TARGET_DEVICE setting to: am68pa
    -- TARGET_CPU not specicfied using x86 
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tfl_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tfl_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = ort_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tidlrt_clasification
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = dlr_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tidlrt_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = ort_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/groly/ti/edgeai-tidl-tools/build
    [  3%] Building CXX object osrt_cpp/pre_process/CMakeFiles/pre_process.dir/pre_process.cpp.o
    [  6%] Building CXX object osrt_cpp/post_process/CMakeFiles/post_process.dir/post_process.cpp.o
    [ 10%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/arg_parsing.cpp.o
    [ 16%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/supportLib.cpp.o
    [ 16%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/utility_functs.cpp.o
    [ 26%] Building CXX object osrt_cpp/advanced_examples/utils/CMakeFiles/utils_adv.dir/src/arg_parsing.cpp.o
    [ 26%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/model_info.cpp.o
    [ 26%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/pbPlots.cpp.o
    [ 30%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/ti_logger.cpp.o
    [ 33%] Building CXX object osrt_cpp/utils/CMakeFiles/utils.dir/src/edgeai_classnames.cpp.o
    [ 36%] Building CXX object osrt_cpp/advanced_examples/utils/CMakeFiles/utils_adv.dir/src/print_utils.cpp.o
    [ 40%] Linking CXX static library /home/groly/ti/edgeai-tidl-tools/lib/Release/libutils_adv.a
    [ 40%] Built target utils_adv
    [ 43%] Linking CXX static library /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a
    [ 43%] Built target pre_process
    [ 46%] Linking CXX static library /home/groly/ti/edgeai-tidl-tools/lib/Release/libutils.a
    [ 46%] Built target utils
    [ 50%] Linking CXX static library /home/groly/ti/edgeai-tidl-tools/lib/Release/libpost_process.a
    [ 50%] Built target post_process
    [ 60%] Building CXX object osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/ort_priority_scheduling.cpp.o
    [ 60%] Building CXX object osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/tfl_priority_scheduling.cpp.o
    [ 60%] Building CXX object tidlrt_cpp/CMakeFiles/tidlrt_clasification.dir/classification.cpp.o
    [ 63%] Building CXX object osrt_cpp/ort/CMakeFiles/ort_main.dir/onnx_main.cpp.o
    [ 66%] Building CXX object osrt_cpp/dlr/CMakeFiles/dlr_main.dir/dlr_main.cpp.o
    [ 70%] Building CXX object tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling.cpp.o
    [ 73%] Building CXX object tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling_utils.cpp.o
    [ 76%] Building CXX object osrt_cpp/tfl/CMakeFiles/tfl_main.dir/tfl_main.cpp.o
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/ort/onnx_main.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/ort/onnx_main.h:81:10: fatal error: itidl_rt.h: No such file or directory
       81 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/advanced_examples/ort/ort_priority_scheduling.h:80:10: fatal error: itidl_rt.h: No such file or directory
       80 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/build.make:76: osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/ort_priority_scheduling.cpp.o] Error 1
    make[2]: *** [osrt_cpp/ort/CMakeFiles/ort_main.dir/build.make:76: osrt_cpp/ort/CMakeFiles/ort_main.dir/onnx_main.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:417: osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make[1]: *** [CMakeFiles/Makefile2:559: osrt_cpp/ort/CMakeFiles/ort_main.dir/all] Error 2
    /home/groly/ti/edgeai-tidl-tools/examples/tidlrt_cpp/classification.cpp:51:10: fatal error: itidl_rt.h: No such file or directory
       51 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/dlr/dlr_main.cpp:62:
    /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/dlr/dlr_main.h:95:10: fatal error: itidl_rt.h: No such file or directory
       95 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [osrt_cpp/dlr/CMakeFiles/dlr_main.dir/build.make:76: osrt_cpp/dlr/CMakeFiles/dlr_main.dir/dlr_main.cpp.o] Error 1
    make[2]: *** [tidlrt_cpp/CMakeFiles/tidlrt_clasification.dir/build.make:76: tidlrt_cpp/CMakeFiles/tidlrt_clasification.dir/classification.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:501: osrt_cpp/dlr/CMakeFiles/dlr_main.dir/all] Error 2
    make[1]: *** [CMakeFiles/Makefile2:472: tidlrt_cpp/CMakeFiles/tidlrt_clasification.dir/all] Error 2
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.h:104:10: fatal error: itidl_rt.h: No such file or directory
      104 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/build.make:90: tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling_utils.cpp.o] Error 1
    make[2]: *** Waiting for unfinished jobs....
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/tidlrt_cpp/advanced_examples/tidlrt_priority_scheduling_utils.h:104:10: fatal error: itidl_rt.h: No such file or directory
      104 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/build.make:76: tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/tidlrt_priority_scheduling.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:530: tidlrt_cpp/advanced_examples/CMakeFiles/tidlrt_priority_scheduling.dir/all] Error 2
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/advanced_examples/tfl/tfl_priority_scheduling.h:99:10: fatal error: itidl_rt.h: No such file or directory
       99 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    In file included from /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/tfl/tfl_main.cpp:63:
    /home/groly/ti/edgeai-tidl-tools/examples/osrt_cpp/tfl/tfl_main.h:97:10: fatal error: itidl_rt.h: No such file or directory
       97 | #include "itidl_rt.h"
          |          ^~~~~~~~~~~~
    compilation terminated.
    make[2]: *** [osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/build.make:76: osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/tfl_priority_scheduling.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:388: osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/all] Error 2
    make[2]: *** [osrt_cpp/tfl/CMakeFiles/tfl_main.dir/build.make:76: osrt_cpp/tfl/CMakeFiles/tfl_main.dir/tfl_main.cpp.o] Error 1
    make[1]: *** [CMakeFiles/Makefile2:359: osrt_cpp/tfl/CMakeFiles/tfl_main.dir/all] Error 2
    make: *** [Makefile:136: all] Error 2

    Thanks,

    Charanjit

  • Now I get the same No such file found error even in the docker

  • Hi Charanjit,

    X86_PC setup works fine, but docker set up is recommended. Can you verify if the paths are set correctly?

    Thank you,

    Fabiana

  • Hi Fabiana,

    I got the X86_PC setup script running. I had to freshly pull the repo and run setup using python virtual environment because the setup script always used some kind of cached version for the tidl_tools packages. Now the setup script runs through properly on both docker and host PC. In the docker I can compile the examples without problem. When compiling for the host directly though I am getting a linking error for cv::Mat::Mat(). The output is shown below.

    groly@groly-dstream:~/ti/edgeai-tidl-tools/build$ cmake ../examples && make -j && cd ..cd build/
    -- Detected processor: x86_64
    -- TARGET_DEVICE setting to: am68pa
    -- TARGET_CPU not specicfied using x86 
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tfl_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tfl_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = ort_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = edgeai_tidl_examples
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tidlrt_clasification
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = dlr_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = tidlrt_priority_scheduling
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- CMAKE_BUILD_TYPE = Release PROJECT_NAME = ort_main
    -- setting TENSORFLOW_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/tflite_2.12_x86_u22/
    -- setting DLR_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/dlr_1.10.0_x86_u22/
    -- setting OPENCV_INSTALL_DIR path:/home/groly/ti/edgeai-tidl-tools/tidl_tools/osrt_deps/opencv_4.2.0_x86_u22/
    -- Compiling for x86 with am68pa config
    -- Configuring done
    -- Generating done
    -- Build files have been written to: /home/groly/ti/edgeai-tidl-tools/build
    Consolidate compiler generated dependencies of target utils
    Consolidate compiler generated dependencies of target utils_adv
    Consolidate compiler generated dependencies of target pre_process
    Consolidate compiler generated dependencies of target post_process
    [  6%] Built target pre_process
    [ 16%] Built target utils_adv
    [ 43%] Built target utils
    [ 50%] Built target post_process
    Consolidate compiler generated dependencies of target tidlrt_clasification
    Consolidate compiler generated dependencies of target tfl_main
    Consolidate compiler generated dependencies of target tfl_priority_scheduling
    Consolidate compiler generated dependencies of target dlr_main
    Consolidate compiler generated dependencies of target ort_priority_scheduling
    Consolidate compiler generated dependencies of target tidlrt_priority_scheduling
    Consolidate compiler generated dependencies of target ort_main
    [ 56%] Built target tidlrt_clasification
    [ 66%] Linking CXX executable /home/groly/ti/edgeai-tidl-tools/bin/Release/ort_priority_scheduling
    [ 70%] Built target tidlrt_priority_scheduling
    [ 80%] Linking CXX executable /home/groly/ti/edgeai-tidl-tools/bin/Release/tfl_main
    [ 80%] Linking CXX executable /home/groly/ti/edgeai-tidl-tools/bin/Release/tfl_priority_scheduling
    [ 80%] Linking CXX executable /home/groly/ti/edgeai-tidl-tools/bin/Release/ort_main
    [ 83%] Linking CXX executable /home/groly/ti/edgeai-tidl-tools/bin/Release/dlr_main
    /usr/bin/ld: CMakeFiles/dlr_main.dir/dlr_main.cpp.o: in function `dlr::main::runInference(tidl::modelInfo::ModelInfo*, tidl::arg_parsing::Settings*)':
    dlr_main.cpp:(.text+0x1c37): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x71): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `/usr/bin/ld: cv::Mat tidl::preprocess::preprocImage<float>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ldCMakeFiles/ort_main.dir/onnx_main.cpp.o: : in function `/home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o):pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]onnx::main::runInference(tidl::modelInfo::ModelInfo*, tidl::arg_parsing::Settings*)+0x':
    5connx_main.cpp:)(: more undefined references to `.textcv::Mat::Mat()+0x' follow
    23de): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x71): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<float>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o):pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): more undefined references to `cv::Mat::Mat()' follow
    collect2: error: ld returned 1 exit status
    collect2: error: ld returned 1 exit status
    make[2]: *** [osrt_cpp/dlr/CMakeFiles/dlr_main.dir/build.make:101: /home/groly/ti/edgeai-tidl-tools/bin/Release/dlr_main] Error 1
    make[1]: *** [CMakeFiles/Makefile2:501: osrt_cpp/dlr/CMakeFiles/dlr_main.dir/all] Error 2
    make[1]: *** Waiting for unfinished jobs....
    make[2]: *** [osrt_cpp/ort/CMakeFiles/ort_main.dir/build.make:101: /home/groly/ti/edgeai-tidl-tools/bin/Release/ort_main] Error 1
    make[1]: *** [CMakeFiles/Makefile2:559: osrt_cpp/ort/CMakeFiles/ort_main.dir/all] Error 2
    /usr/bin/ld: CMakeFiles/ort_priority_scheduling.dir/ort_priority_scheduling.cpp.o: in function `onnx::main::getInvokeTime(onnx::main::ort_model_struct*)':
    ort_priority_scheduling.cpp:(.text+0x20f6): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: CMakeFiles/ort_priority_scheduling.dir/ort_priority_scheduling.cpp.o: in function `onnx::main::infer(void*)':
    ort_priority_scheduling.cpp:(.text+0x47f1): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x71): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o):pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): more undefined references to `cv::Mat::Mat()' follow
    collect2: error: ld returned 1 exit status
    make[2]: *** [osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/build.make:101: /home/groly/ti/edgeai-tidl-tools/bin/Release/ort_priority_scheduling] Error 1
    make[1]: *** [CMakeFiles/Makefile2:417: osrt_cpp/advanced_examples/ort/CMakeFiles/ort_priority_scheduling.dir/all] Error 2
    /usr/bin/ld: CMakeFiles/tfl_priority_scheduling.dir/tfl_priority_scheduling.cpp.o: in function `tflite::main::getInvokeTime(tflite::main::tfl_model_struct*)':
    tfl_priority_scheduling.cpp:(.text+0xea1): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: CMakeFiles/tfl_priority_scheduling.dir/tfl_priority_scheduling.cpp.o: in function `tflite::main::infer(void*)':
    tfl_priority_scheduling.cpp:(.text+0x2dbf): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: CMakeFiles/tfl_main.dir/tfl_main.cpp.o: in function `tflite::main::runInference(tidl::modelInfo::ModelInfo*, tidl::arg_parsing::Settings*)':
    tfl_main.cpp:(.text+0x18d5): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x71): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o):pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): more undefined references to `cv::Mat::Mat()' follow
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<unsigned char>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, unsigned char*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIhEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x71): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o): in function `cv::Mat tidl::preprocess::preprocImage<float>(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, float*, tidl::modelInfo::PreprocessImageConfig)':
    pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x47): undefined reference to `cv::Mat::Mat()'
    /usr/bin/ld: /home/groly/ti/edgeai-tidl-tools/lib/Release/libpre_process.a(pre_process.cpp.o):pre_process.cpp:(.text._ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE[_ZN4tidl10preprocess12preprocImageIfEEN2cv3MatERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEEPT_NS_9modelInfo21PreprocessImageConfigE]+0x5c): more undefined references to `cv::Mat::Mat()' follow
    collect2: error: ld returned 1 exit status
    make[2]: *** [osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/build.make:101: /home/groly/ti/edgeai-tidl-tools/bin/Release/tfl_priority_scheduling] Error 1
    make[1]: *** [CMakeFiles/Makefile2:388: osrt_cpp/advanced_examples/tfl/CMakeFiles/tfl_priority_scheduling.dir/all] Error 2
    collect2: error: ld returned 1 exit status
    make[2]: *** [osrt_cpp/tfl/CMakeFiles/tfl_main.dir/build.make:101: /home/groly/ti/edgeai-tidl-tools/bin/Release/tfl_main] Error 1
    make[1]: *** [CMakeFiles/Makefile2:359: osrt_cpp/tfl/CMakeFiles/tfl_main.dir/all] Error 2
    make: *** [Makefile:136: all] Error 2

    I suspect something is missing in the LD_LINKER_PATH that gets set by the script, although the same seems to work in the docker environment.

    Regards,

    Charanjit

  • Hi Charanjit,

    I am glad you were able to get past the set up successfully again. If you find that docker is working, please proceed with this. Were you able to run inference on the SOC with the compiled artifacts?

    Thank you,

    Fabiana

  • Hi Fabiana,

    No I haven't been able to run any code from the TIDL Tools on the SOC. It still shows the "Target kernel, TIVX_CMD_NODE_CREATE failed for node TIDLNode" message. Just to be clear on the procedure,as given in the guide github.com/.../master

    1. I compile and run TIDL tools in the docker,
    2. Clone the repo to the SOC, and checkout the relevant version 10_01_00_02
    3. Set the variables with export
    4. copy the models and model_artifacts directories into the edgeai-tidl-tools directory which I cloned on the SOC,
    5. compile with "cmake ../examples && make -j && cd .."
    6. and run the command "python3 ./scripts/gen_test_report.py"

    Or is there something else I'm missing?

    Further, does it matter where I clone the repo on the SOC? (in /opt or / )

  • Hi Fabiana,

    I was able to run inference on the SOC with the compiled artifacts after I deleted TIDL tools on the SOC and cloned the repo again. I am going to try the whole process again just to be sure I can reproduce the results i.e. delete and install TIDL tools both in docker on PC and the SK-TDA4VM.

    When running the gen_test_report.py on the SOC I am getting

    Func Pass: 10
    Func Fail: 0
    
    Perf Pass: 7
    Perf Fail: 3
    

    Is there something I can do to get the failing Perf test to pass?

    Thank you and regards,

    Charanjit

  • Hello Fabiana,

    I tried reproducing the compilation of models in docker with 10_01_00_02 and got 4 Func fails with the message "output bin file mismatch". Then I tried the setup on host PC without docker, as the last time all func tests passed was after the host PC setup had failed and retried with the docker, but the host PC build failed. Then all tests passed again after building in docker. I then noticed that new versions of tidl_tools (10_01_04_00) are available and tried compiling and got the same linker error while trying directly on host. When running in docker I again got 5 Func pass and 6 Func fail with "Output Bin File Mismatch"

    Here are the contents of the test_report_pc_am68pa.csv

    Sl No.,Runtime,Name,Output Image File,Output Bin File,Functional Status,Info
    0,tfl-py,cl-tfl-mobilenet_v1_1.0_224,py_out_cl-tfl-mobilenet_v1_1.0_224_airshow.jpg,py_out_cl-tfl-mobilenet_v1_1.0_224_airshow.bin,FAIL,Output Bin File Mismatch
    1,tfl-py,od-tfl-ssd_mobilenet_v2_300_float,py_out_od-tfl-ssd_mobilenet_v2_300_float_ADE_val_00001801.jpg,py_out_od-tfl-ssd_mobilenet_v2_300_float_ADE_val_00001801.bin,PASS,
    2,tfl-py,od-tfl-ssdlite_mobiledet_dsp_320x320_coco,py_out_od-tfl-ssdlite_mobiledet_dsp_320x320_coco_ADE_val_00001801.jpg,py_out_od-tfl-ssdlite_mobiledet_dsp_320x320_coco_ADE_val_00001801.bin,PASS,
    3,tfl-py,ss-tfl-deeplabv3_mnv2_ade20k_float,py_out_ss-tfl-deeplabv3_mnv2_ade20k_float_ADE_val_00001801.jpg,py_out_ss-tfl-deeplabv3_mnv2_ade20k_float_ADE_val_00001801.bin,FAIL,Output Bin File Mismatch
    4,ort-py,cl-ort-resnet18-v1,py_out_cl-ort-resnet18-v1_airshow.jpg,py_out_cl-ort-resnet18-v1_airshow.bin,PASS,
    5,ort-py,od-ort-ssd-lite_mobilenetv2_fpn,py_out_od-ort-ssd-lite_mobilenetv2_fpn_ADE_val_00001801.jpg,py_out_od-ort-ssd-lite_mobilenetv2_fpn_ADE_val_00001801.bin,FAIL,Output Bin File Mismatch
    6,ort-py,ss-ort-deeplabv3lite_mobilenetv2,py_out_ss-ort-deeplabv3lite_mobilenetv2_ADE_val_00001801.jpg,py_out_ss-ort-deeplabv3lite_mobilenetv2_ADE_val_00001801.bin,FAIL,Output Bin File Mismatch
    7,tfl-cpp,cl-tfl-mobilenet_v1_1.0_224,cpp_out_cl-tfl-mobilenet_v1_1.0_224.jpg,cpp_out_cl-tfl-mobilenet_v1_1.0_224.bin,PASS,
    8,tfl-cpp,ss-tfl-deeplabv3_mnv2_ade20k_float,cpp_out_ss-tfl-deeplabv3_mnv2_ade20k_float.jpg,cpp_out_ss-tfl-deeplabv3_mnv2_ade20k_float.bin,FAIL,Output Bin File Mismatch
    9,ort-cpp,cl-ort-resnet18-v1,cpp_out_cl-ort-resnet18-v1.jpg,cpp_out_cl-ort-resnet18-v1.bin,PASS,
    10,ort-cpp,od-ort-ssd-lite_mobilenetv2_fpn,cpp_out_od-ort-ssd-lite_mobilenetv2_fpn.jpg,cpp_out_od-ort-ssd-lite_mobilenetv2_fpn.bin,FAIL,Output Bin File Mismatch

    I am currently not sure exactly which step helped me pass all tests in docker again. I suspect something while running the setup on host PC changed something used by the docker and the tests passed in the docker

    Regards

    Charanjit

  • Hi Charanjit,

    Are you running everything in a clean environment when starting the process over? Were you unable to replicate the test success you had with 10_01_00_02 using the 10_01_04_00 tag?

    Thank you,

    Fabiana

  • Hi Fabiana,

    Yes I was running a newly cloned copy of 10_01_04_00. 

    Though it still does not compile natively on the Host PC (Ubunutu 22.04), it compiles fine in the Docker environment without problems. 

    But when I run "python3 ./scripts/gen_test_report" I get Output Bin File Mismatch as shown in my last reply. 

    Moreover I am still unable to reproduce the results of all tests running successfully under version 10_01_00_02 reliably. The same problem occurs there too. The tests passed in docker twice, but I have no idea what had changed when they passed. What I know is that I tried building on host PC once before running the process in the docker again.

    What does the mismatch imply? There are no compiler errors, and the output binaries are generated when I either run "source ./scripts/run_python_examples.sh" or gen_test_report.py. But with the binaries that show a Mismatch during the test, running them on the SOC also does not go through

    I finally want to compile the yolop model for inference, but as long as I have no reliable way of running the stock example models, I don't think it is feasible to compile and run any custom models.

    Regards,

    Charanjit

  • Hi Charanjit,

    Thank you for the details. Please allow me some time to run some tests on my end.

    Regards,

    Fabiana

  • Hi Fabiana,

    I tested various combinations myself. From what the results I got, I have the following observations.

    1. Both 10_01_00_02 and 10_01_04_00 do not compile on my Host PC directly.

    Here is the value returned by uname -a and nvidia-smi.

    Linux groly-dstream 6.8.0-52-generic #53~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Wed Jan 15 19:18:46 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
    
    Wed Feb 12 21:54:35 2025       
    +-----------------------------------------------------------------------------------------+
    | NVIDIA-SMI 560.35.03              Driver Version: 560.35.03      CUDA Version: 12.6     |
    |-----------------------------------------+------------------------+----------------------+
    | GPU  Name                 Persistence-M | Bus-Id          Disp.A | Volatile Uncorr. ECC |
    | Fan  Temp   Perf          Pwr:Usage/Cap |           Memory-Usage | GPU-Util  Compute M. |
    |                                         |                        |               MIG M. |
    |=========================================+========================+======================|
    |   0  NVIDIA GeForce RTX 2060        Off |   00000000:41:00.0  On |                  N/A |
    |  0%   43C    P5             20W /  170W |     942MiB /   6144MiB |     29%      Default |
    |                                         |                        |                  N/A |
    +-----------------------------------------+------------------------+----------------------+
                                                                                             
    +-----------------------------------------------------------------------------------------+
    | Processes:                                                                              |
    |  GPU   GI   CI        PID   Type   Process name                              GPU Memory |
    |        ID   ID                                                               Usage      |
    |=========================================================================================|
    |    0   N/A  N/A      2922      G   /usr/lib/xorg/Xorg                            402MiB |
    |    0   N/A  N/A      3195      G   /usr/bin/nextcloud                              6MiB |
    |    0   N/A  N/A      3743      G   ...irefox/5701/usr/lib/firefox/firefox        494MiB |
    +-----------------------------------------------------------------------------------------+
    

    On the Host PC make fails with a linking error as posted in an earlier reply.

    2. Running docker with TIDL_TOOLS_TYPE=GPU set results in Output Binary File Mismatch in 7 out of the 11 Models. This behavior is consistent with both the above mentioned TIDL Tools versions.

    3. Running docker without TIDL_TOOLS_TYPE=GPU (i.e. on CPU) compiles fine and all the function tests executed by gen_test_report.py pass, with some models failing perf tests(I guess it is fine if some models fail the perf test). This also happens across both versions  10_01_00_02 and 10_01_04_00.

    On the SOC Side

    1. Running make -j just hangs the compilation process at around 76%. I have to interrupt the process by hitting ctrl-c. normal make (without -j) compiles fine. This is the same on both TIDL versions.

    2. On version 10_01_00_02, when I copy over the models and model-artifacts from the docker, all models pass the function tests run with gen_test_report.py (Are there only 10 tests that get executed on the SOC? I always get 10 tests passed, while on the PC in docker it is 11 tests)

    3. On version 10_01_04_00, when I copy over models and model-artifacts generated with version 10_01_04_00 on PC in docker, I get "Target kernel, TIVX_CMD_NODE_CREATE failed for node node_82"

    root@tda4vm-sk:/opt/test/edgeai-tidl-tools# source ./scripts/run_python_examples.sh 
    ARM Architecture
    1
    
    run python3 tflrt_delegate.py
    Running 4 Models - ['cl-tfl-mobilenet_v1_1.0_224', 'ss-tfl-deeplabv3_mnv2_ade20k_float', 'od-tfl-ssd_mobilenet_v2_300_float', 'od-tfl-ssdlite_mobiledet_dsp_320x320_coco']
    
    
    Running_Model :  cl-tfl-mobilenet_v1_1.0_224
    
     Number of subgraphs:1 , 34 nodes delegated out of 34 nodes 
     
    APP: Init ... !!!
       272.900220 s: MEM: Init ... !!!
       272.900269 s: MEM: Initialized DMA HEAP (fd=6) !!!
       272.900415 s: MEM: Init ... Done !!!
       272.900433 s: IPC: Init ... !!!
       272.960025 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       272.964482 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       272.964638 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
       272.964651 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
       272.964657 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
       272.965703 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
       272.965831 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
       272.965921 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
       272.966022 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
       272.966035 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
       272.966047 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
       272.985308 s:  VX_ZONE_ERROR: [ownContextSendCmd:912] Command ack message returned failure cmd_status: -1
       272.985531 s:  VX_ZONE_ERROR: [ownNodeKernelInit:604] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_82
       272.985617 s:  VX_ZONE_ERROR: [ownNodeKernelInit:605] Please be sure the target callbacks have been registered for this core
       272.985637 s:  VX_ZONE_ERROR: [ownNodeKernelInit:606] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
       272.985657 s:  VX_ZONE_ERROR: [ownGraphNodeKernelInit:690] kernel init for node 0, kernel com.ti.tidl:1:1 ... failed !!!
       272.985699 s:  VX_ZONE_ERROR: [ TIDL subgraph MobilenetV1/Predictions/Reshape_1 ] Node kernel init failed
       272.985718 s:  VX_ZONE_ERROR: [ TIDL subgraph MobilenetV1/Predictions/Reshape_1 ] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    Segmentation fault (core dumped)
    run python3 onnxrt_ep.py
    Available execution providers :  ['TIDLExecutionProvider', 'TIDLCompilationProvider', 'CPUExecutionProvider']
    
    Running 3 Models - ['cl-ort-resnet18-v1', 'od-ort-ssd-lite_mobilenetv2_fpn', 'ss-ort-deeplabv3lite_mobilenetv2']
    
    
    Running_Model :  cl-ort-resnet18-v1  
    
    libtidl_onnxrt_EP loaded 0x11527c90 
    Final number of subgraphs created are : 1, - Offloaded Nodes - 52, Total Nodes - 52 
    APP: Init ... !!!
       275.993040 s: MEM: Init ... !!!
       275.993088 s: MEM: Initialized DMA HEAP (fd=5) !!!
       275.993281 s: MEM: Init ... Done !!!
       275.993303 s: IPC: Init ... !!!
       276.049975 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       276.057753 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       276.057897 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
       276.058852 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
       276.058891 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
       276.059619 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
       276.060244 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
       276.060499 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
       276.060674 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
       276.061036 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
       276.061073 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
       276.084555 s:  VX_ZONE_ERROR: [ownContextSendCmd:912] Command ack message returned failure cmd_status: -1
       276.084606 s:  VX_ZONE_ERROR: [ownNodeKernelInit:604] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_82
       276.084625 s:  VX_ZONE_ERROR: [ownNodeKernelInit:605] Please be sure the target callbacks have been registered for this core
       276.084643 s:  VX_ZONE_ERROR: [ownNodeKernelInit:606] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
       276.084662 s:  VX_ZONE_ERROR: [ownGraphNodeKernelInit:690] kernel init for node 0, kernel com.ti.tidl:1:1 ... failed !!!
       276.084704 s:  VX_ZONE_ERROR: [ TIDL subgraph 191 ] Node kernel init failed
       276.084756 s:  VX_ZONE_ERROR: [ TIDL subgraph 191 ] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    Traceback (most recent call last):
      File "/opt/test/edgeai-tidl-tools/examples/osrt_python/ort/onnxrt_ep.py", line 541, in <module>
        run_model(model, mIdx)
      File "/opt/test/edgeai-tidl-tools/examples/osrt_python/ort/onnxrt_ep.py", line 341, in run_model
        sess = rt.InferenceSession(
               ^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 387, in __init__
        self._create_inference_session(providers, provider_options, disabled_optimizers)
      File "/usr/lib/python3.12/site-packages/onnxruntime/capi/onnxruntime_inference_collection.py", line 439, in _create_inference_session
        sess.initialize_session(providers, provider_options, disabled_optimizers)
    onnxruntime.capi.onnxruntime_pybind11_state.Fail: [ONNXRuntimeError] : 1 : FAIL : Create state function failed. Return value:-1
    run python3  dlr_inference_example.py 
    
    
    Running Inference on Model -  ../../../model-artifacts/cl-dlr-tflite_inceptionnetv3_device/artifacts
    
    2025-02-12 21:39:25,703 INFO Could not find libdlr.so in model artifact. Using dlr from /usr/lib/python3.12/site-packages/dlr/libdlr.so
    APP: Init ... !!!
       282.321495 s: MEM: Init ... !!!
       282.321541 s: MEM: Initialized DMA HEAP (fd=5) !!!
       282.321731 s: MEM: Init ... Done !!!
       282.321749 s: IPC: Init ... !!!
       282.380084 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       282.388418 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       282.388504 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
       282.388513 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
       282.388520 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
       282.390602 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
       282.390745 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
       282.390850 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
       282.390932 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
       282.390944 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
       282.390958 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
    
     Processing time in ms :       10.6
    
    APP: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... !!!
    REMOTE_SERVICE: Deinit ... Done !!!
       284.712021 s: IPC: Deinit ... !!!
       284.714141 s: IPC: DeInit ... Done !!!
       284.714420 s: MEM: Deinit ... !!!
       284.714458 s: DDR_SHARED_MEM: Alloc's: 7 alloc's of 27332808 bytes 
       284.714474 s: DDR_SHARED_MEM: Free's : 7 free's  of 27332808 bytes 
       284.714480 s: DDR_SHARED_MEM: Open's : 0 allocs  of 0 bytes 
       284.714492 s: MEM: Deinit ... Done !!!
    APP: Deinit ... Done !!!
    ,  0  0.998819  pitcher, ewer ,,  1  0.001181  web site, website, internet site, site ,,  2  0.000000  toilet tissue, toilet paper, bathroom tissue ,,  3  0.000000  wild boar, boar, Sus scrofa ,,  4  0.000000  zebra ,
    
    Saving image to  ../../../output_images/
    
    Saving output tensor to  ../../../output_binaries/
    
     
    Completed_Model :     1, Name : cl-dlr-tflite_inceptionnetv3_device               , Total time :      10.62, Offload Time :      10.62 , DDR RW MBs : 0, Output Image File : py_out_cl-dlr-tflite_inceptionnetv3_device_airshow.jpg, Output Bin File : py_out_cl-dlr-tflite_inceptionnetv3_device_airshow.bin
     
     
    
    
    Running Inference on Model -  ../../../model-artifacts/cl-dlr-onnx_mobilenetv2_device/artifacts
    
    2025-02-12 21:39:33,604 INFO Could not find libdlr.so in model artifact. Using dlr from /usr/lib/python3.12/site-packages/dlr/libdlr.so
    APP: Init ... !!!
       285.680793 s: MEM: Init ... !!!
       285.680851 s: MEM: Initialized DMA HEAP (fd=5) !!!
       285.680965 s: MEM: Init ... Done !!!
       285.680975 s: IPC: Init ... !!!
       285.739243 s: IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
       285.748084 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       285.748116 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_ERROR
       285.748128 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_WARNING
       285.748135 s:  VX_ZONE_INFO: Globally Enabled VX_ZONE_INFO
       285.748445 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-0 
       285.748536 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-1 
       285.748651 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-2 
       285.748984 s:  VX_ZONE_INFO: [tivxPlatformCreateTargetId:134] Added target MPU-3 
       285.749002 s:  VX_ZONE_INFO: [tivxInitLocal:126] Initialization Done !!!
       285.749015 s:  VX_ZONE_INFO: Globally Disabled VX_ZONE_INFO
       285.765215 s:  VX_ZONE_ERROR: [ownContextSendCmd:912] Command ack message returned failure cmd_status: -1
       285.765245 s:  VX_ZONE_ERROR: [ownNodeKernelInit:604] Target kernel, TIVX_CMD_NODE_CREATE failed for node node_82
       285.765251 s:  VX_ZONE_ERROR: [ownNodeKernelInit:605] Please be sure the target callbacks have been registered for this core
       285.765257 s:  VX_ZONE_ERROR: [ownNodeKernelInit:606] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
       285.765265 s:  VX_ZONE_ERROR: [ownGraphNodeKernelInit:690] kernel init for node 0, kernel com.ti.tidl:1:1 ... failed !!!
       285.765289 s:  VX_ZONE_ERROR: [ TIDL subgraph tidl_0_o0 ] Node kernel init failed
       285.765296 s:  VX_ZONE_ERROR: [ TIDL subgraph tidl_0_o0 ] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    [21:39:34] /dlr/arch64/neo-ai-dlr/src/dlr.cc:343: Error: [21:39:34] /dlr/arch64/neo-ai-dlr/3rdparty/tvm/src/runtime/contrib/tidl/tidl_runtime.cc:264: Failed to initialize TIDLRT for subgraph 0
    
    Stack trace:
      [bt] (0) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x13290c) [0xffff7f94290c]
      [bt] (1) /usr/lib/python3.12/site-packages/dlr/libdlr.so(tvm::runtime::detail::LogFatal::Entry::Finalize()+0x6c) [0xffff7f84dbbc]
      [bt] (2) /usr/lib/python3.12/site-packages/dlr/libdlr.so(tvm::runtime::TIDLJ7Module::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)+0x624) [0xffff7f9070b4]
      [bt] (3) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x1354bc) [0xffff7f9454bc]
      [bt] (4) /usr/lib/python3.12/site-packages/dlr/libdlr.so(tvm::runtime::ConstLoaderModuleNode::GetFunction(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, tvm::runtime::ObjectPtr<tvm::runtime::Object> const&)+0x4e0) [0xffff7f8606c0]
      [bt] (5) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x1354bc) [0xffff7f9454bc]
      [bt] (6) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x1960b0) [0xffff7f9a60b0]
      [bt] (7) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x19a06c) [0xffff7f9aa06c]
      [bt] (8) /usr/lib/python3.12/site-packages/dlr/libdlr.so(+0x19b71c) [0xffff7f9ab71c]
    
    
    2025-02-12 21:39:34,588 ERROR error in DLRModel instantiation 
    Traceback (most recent call last):
      File "/usr/lib/python3.12/site-packages/dlr/api.py", line 89, in __init__
        self._impl = DLRModelImpl(model_path, dev_type, dev_id, error_log_file, use_default_dlr)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/dlr/dlr_model.py", line 79, in __init__
        self._check_call(self._lib.CreateDLRModel(byref(self.handle),
      File "/usr/lib/python3.12/site-packages/dlr/dlr_model.py", line 160, in _check_call
        raise DLRError(self._lib.DLRGetLastError().decode('ascii'))
    dlr.dlr_model.DLRError
    Traceback (most recent call last):
      File "/opt/test/edgeai-tidl-tools/examples/osrt_python/tvm_dlr/dlr_inference_example.py", line 227, in <module>
        model_create_and_run(
      File "/opt/test/edgeai-tidl-tools/examples/osrt_python/tvm_dlr/dlr_inference_example.py", line 168, in model_create_and_run
        model = DLRModel(model_dir, "cpu")
                ^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/dlr/api.py", line 92, in __init__
        raise ex
      File "/usr/lib/python3.12/site-packages/dlr/api.py", line 89, in __init__
        self._impl = DLRModelImpl(model_path, dev_type, dev_id, error_log_file, use_default_dlr)
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      File "/usr/lib/python3.12/site-packages/dlr/dlr_model.py", line 79, in __init__
        self._check_call(self._lib.CreateDLRModel(byref(self.handle),
      File "/usr/lib/python3.12/site-packages/dlr/dlr_model.py", line 160, in _check_call
        raise DLRError(self._lib.DLRGetLastError().decode('ascii'))
    dlr.dlr_model.DLRError

    As of now I can run the code on both the PC in docker and SOC only on version 10_01_00_02 without GPU.

    I hope you can reproduce my results, or if everything works fine at your end, help me get things working on my system.

    Feedback for edgeai-tidl-tools repo Readme -> In section Benchmark on TI SOC in the scp commands, you have written "<dev board>/edgeai-tidl-tool/" instead of edgeai-tidl-tools, which in turn copies stuff to a new directory instead of the tools directory which is cloned, if you are not attentive.

    Therefore I will continue with version 10_01_00_02 until the problem with NODE_CREATE is solved on 10_01_04_00, or you guide me on the exact steps to be executed in order to get it running.

    Thanks and regards

    Charanjit

  • Hi Charanjit,

    I appreciate your detailed responses and logs. We have been able to replicate these errors/inconsistencies on our end and have shared these results as well as your feedback to our development team. I will update this thread once I hear back from them.

    Thank you,

    Fabiana

  • Hey Fabiana,

    Thank you for confirming the status. I will be waiting for the updates and will try compiling the yolop and yolop2 model according to other posts on this forum but with version 10_01_00_02 of TIDL Tools. Moreover there was an issue with setup_docker.sh where newgrp spawns a new shell session while the script is running and the next part of the script does not execute unless you exit the newly spawned session. I have created an issue and pull request in this regard at https://github.com/TexasInstruments/edgeai-tidl-tools/pull/100

    Regards,

    Charanjit

  • Hi Charanjit,

    Did you update the firmware through the update_target.sh script when using version 10_01_00_04? See more details in the Notes column of the version compatibility table: https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/docs/version_compatibility_table.md

    Thank you,

    Fabiana

  • Hi Fabiana,

    The compiled models work on both the PC/Docker and board after setting the option.

    Although I had updated the firmware by running the script, I did not use the "advanced_options:c7x_firmware_version" option as I had missed going through the version compatibility table.

    A little feedback and question regarding the setting options part: https://github.com/TexasInstruments/edgeai-tidl-tools/blob/master/examples/osrt_python/README.md#user-options-for-tidl-acceleration - I have edited the file "common_utils.py" and added the option to optional_options. I'm not sure whether this is the right way to do it, and what other ways are available to achieve this.

    The documentation in the above link asks to "see compilation examples (examples/osrt_python) for how to use these options." but I found no direct example where this is mentioned. Maybe a simple line under the head user options for TIDL acceleration explaining where to change or add these options would be more helpful, especially for people starting from scratch.

    Are there any updates on using the GPU for compilation of the models and artifacts?

    Thank you and regards,

    Charanjit

  • Hi Charanjit,

    Due to a US holiday, please expect a delay in my response.

    Thank you,

    Fabiana

  • Hi Charanjit, 

    Yes, editing the common_utils.py will allow you to set options. Thank you for the feedback and we will work on implementing them in the documentation.

    The GPU and the CPU tooling has the same outcome in regards to the artifacts, so which one you use will not change what is targeted. If compiling on the CPU works for your case, that would be the better tooling to use at this time.

    Warm regards,

    Christina