This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SK-TDA4VM: TIDL compilation from onnx

Part Number: SK-TDA4VM

I'm trying to build the custom model from ONNX using edgeai-tidl-tools, but encountered the problem.

Here is the visualization of ONNX layers:


Here is the log message with max debug level:

tidl_tools_path                                 = /home/root/tidl_tools
artifacts_folder                                = /home/root/model-artifacts/search/
tidl_tensor_bits                                = 8
debug_level                                     = 6
num_tidl_subgraphs                              = 16
tidl_denylist                                   =
tidl_denylist_layer_name                        =
tidl_denylist_layer_type                         =
tidl_allowlist_layer_name                        =
model_type                                      =
tidl_calibration_accuracy_level                 = 7
tidl_calibration_options:num_frames_calibration = 20
tidl_calibration_options:bias_calibration_iterations = 50
mixed_precision_factor = -1.000000
model_group_id = 0
power_of_2_quantization                         = 2
enable_high_resolution_optimization             = 0
pre_batchnorm_fold                              = 1
add_data_convert_ops                          = 0
output_feature_16bit_names_list                 =
m_params_16bit_names_list                       =
reserved_compile_constraints_flag               = 1601
ti_internal_reserved_1                          =

 ****** WARNING : Network not identified as Object Detection network : (1) Ignore if network is not Object Detection network (2) If network is Object Detection network, please specify "model_type":"OD" as part of OSRT compilation options******

Supported TIDL layer type ---            Conv -- /Conv
Supported TIDL layer type ---         Reshape -- /connect_model/cls_encode/Reshape
Unsupported (TIDL check) TIDL layer type ---       Transpose

Preliminary subgraphs created = 1
Final number of subgraphs created are : 1, - Offloaded Nodes - 2, Total Nodes - 3
TIDL ALLOWLISTING LAYER CHECK -- [TIDL_TransposeLayer]  should be removed in import process. If not, this model will not work!
/home/root/tidl_tools/tidl_graphVisualiser_runtimes.out: error while loading shared libraries: libcgraph.so.6: cannot open shared object file: No such file or directory
Running runtimes graphviz - /home/root/tidl_tools/tidl_graphVisualiser_runtimes.out /home/root/model-artifacts/search//allowedNode.txt /home/root/model-artifacts/search//tempDir/graphvizInfo.txt /home/root/model-artifacts/search//tempDir/runtimes_visualization.svg
*** In TIDL_createStateImportFunc ***
Compute on node : TIDLExecutionProvider_TIDL_0_0
  0,            Conv, 3, 1, template_features, /Conv_output_0
  1,         Reshape, 2, 1, /Conv_output_0, /connect_model/cls_encode/Reshape_output_0

Input tensor name -  template_features
Output tensor name - /connect_model/cls_encode/Reshape_output_0
Initialized
In TIDL_onnxRtImportInit subgraph_name=_connect_model_cls_encode_Reshape_output_0
Layer 0, subgraph id _connect_model_cls_encode_Reshape_output_0, name=/connect_model/cls_encode/Reshape_output_0
Layer 1, subgraph id _connect_model_cls_encode_Reshape_output_0, name=template_features
In TIDL_runtimesOptimizeNet: LayerIndex = 4, dataIndex = 3

 ************** Frame index 1 : Running float import *************
In TIDL_runtimesPostProcessNet
/home/root/tidl_tools/tidl_graphVisualiser.out: error while loading shared libraries: libcgraph.so.6: cannot open shared object file: No such file or directory
****************************************************
**                ALL MODEL CHECK PASSED          **
****************************************************

************ in TIDL_subgraphRtCreate ************
 The soft limit is 2048
The hard limit is 2048
MEM: Init ... !!!
MEM: Init ... Done !!!
 0.0s:  VX_ZONE_INIT:Enabled
 0.7s:  VX_ZONE_ERROR:Enabled
 0.12s:  VX_ZONE_WARNING:Enabled
 0.2171s:  VX_ZONE_INIT:[tivxInit:184] Initialization Done !!!
TIDL_initDebugTraceParams Done
Alg Alloc for Layer # -    0
Alg Alloc for Layer # -    1
Alg Alloc for Layer # -    2
Alg Alloc for Layer # -    3
Alg Alloc for Layer # -    4
Alg Alloc for Layer # -    5

--------------------------------------------
TIDL Memory size requiement (record wise):
MemRecNum   , Space       , Attribute   , Size(KBytes)
0           , DDR Cacheable, Persistent  , 14.84
1           , DDR Cacheable, Persistent  , 0.14
2           , DDR Cacheable, Scratch     , 16.00
3           , DDR Cacheable, Scratch     , 4.00
4           , DDR Cacheable, Scratch     , 56.00
5           , DDR Cacheable, Persistent  , 258.00
6           , DDR Cacheable, Scratch     , 448.62
7           , DDR Cacheable, Scratch     , 0.12
8           , DDR Cacheable, Scratch     , 96.12
9           , DDR Cacheable, Scratch     , 515.00
10          , DDR Cacheable, Scratch     , 0.12
11          , DDR Cacheable, Persistent  , 201.12
12          , DDR Cacheable, Scratch     , 512.25
13          , DDR Cacheable, Persistent  , 0.12
14          , DDR Cacheable, Persistent  , 675.81
--------------------------------------------
Total memory size requirement (space wise):
Mem Space , Size(KBytes)
DDR Cacheable, 2798.29
--------------------------------------------
NOTE: Memory requirement in host emulation can be different from the same on EVM
      To get the actual TIDL memory requirement make sure to run on EVM with
      debugTraceLevel = 2

--------------------------------------------
Alg Init for Layer # -    0 out of    5
Alg Init for Layer # -    1 out of    5
Alg Init for Layer # -    2 out of    5
Alg Init for Layer # -    3 out of    5
Alg Init for Layer # -    4 out of    5
Alg Init for Layer # -    5 out of    5
PREEMPTION: Adding a new priority object for targetPriority = 2, handle = 0x7feee47a3000
PREEMPTION: Now total number of priority objects = 1 at priorityId = 2,    with new memRec of base = 0x7fee30017000 and size = 128
PREEMPTION: Requesting context memory addr for handle 0x7feee47a3000, return Addr = 0x7fee30017000
************ TIDL_subgraphRtCreate done ************
 Warning : Couldn't find corresponding ioBuf tensor for onnx tensor with matching name
*******   In TIDL_subgraphRtInvoke  ********
TIDL_activate is called with handle : e47a3000
Starting Layer # -    1
Processing Layer # -    1
End of Layer # -    1 with outPtrs[0] = 0x7fee30167000
Starting Layer # -    2
Processing Layer # -    2
End of Layer # -    2 with outPtrs[0] = 0x7fee30177000
Starting Layer # -    3
Processing Layer # -    3
End of Layer # -    3 with outPtrs[0] = 0x7fee30187000
Starting Layer # -    4
Processing Layer # -    4
End of Layer # -    4 with outPtrs[0] = 0x7fee302e0000
TIDL_process is completed with handle : e47a3000
 Layer,   Layer Cycles,kernelOnlyCycles, coreLoopCycles,LayerSetupCycles,dmaPipeupCycles, dmaPipeDownCycles, PrefetchCycles,copyKerCoeffCycles,LayerDeinitCycles,LastBlockCycles, paddingTrigger,    paddingWait,LayerWithoutPad,LayerHandleCopy,   BackupCycles,  RestoreCycles,

     1,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     2,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     3,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     4,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,

 Sum of Layer Cycles 0
Sub Graph Stats 12.000000 38971.000000 164.000000
*******  TIDL_subgraphRtInvoke done  ********

**********  Frame Index 1 : Running float inference **********
Segmentation fault (core dumped)

Importantly, that if Transpose layer is removed from the onnx model, tidl compilation is successful. Here is the log message of succesfull compilation when "Transpose" layer is removed from model:

tidl_tools_path                                 = /home/root/tidl_tools
artifacts_folder                                = /home/root/model-artifacts/search/
tidl_tensor_bits                                = 8
debug_level                                     = 6
num_tidl_subgraphs                              = 16
tidl_denylist                                   =
tidl_denylist_layer_name                        =
tidl_denylist_layer_type                         =
tidl_allowlist_layer_name                        =
model_type                                      =
tidl_calibration_accuracy_level                 = 7
tidl_calibration_options:num_frames_calibration = 20
tidl_calibration_options:bias_calibration_iterations = 50
mixed_precision_factor = -1.000000
model_group_id = 0
power_of_2_quantization                         = 2
enable_high_resolution_optimization             = 0
pre_batchnorm_fold                              = 1
add_data_convert_ops                          = 0
output_feature_16bit_names_list                 =
m_params_16bit_names_list                       =
reserved_compile_constraints_flag               = 1601
ti_internal_reserved_1                          =

 ****** WARNING : Network not identified as Object Detection network : (1) Ignore if network is not Object Detection network (2) If network is Object Detection network, please specify "model_type":"OD" as part of OSRT compilation options******

Supported TIDL layer type ---            Conv -- /Conv
Supported TIDL layer type ---         Reshape -- /connect_model/cls_encode/Reshape

Preliminary subgraphs created = 1
Final number of subgraphs created are : 1, - Offloaded Nodes - 2, Total Nodes - 2
/home/root/tidl_tools/tidl_graphVisualiser_runtimes.out: error while loading shared libraries: libcgraph.so.6: cannot open shared object file: No such file or directory
Running runtimes graphviz - /home/root/tidl_tools/tidl_graphVisualiser_runtimes.out /home/root/model-artifacts/search//allowedNode.txt /home/root/model-artifacts/search//tempDir/graphvizInfo.txt /home/root/model-artifacts/search//tempDir/runtimes_visualization.svg
*** In TIDL_createStateImportFunc ***
Compute on node : TIDLExecutionProvider_TIDL_0_0
  0,            Conv, 3, 1, template_features, /Conv_output_0
  1,         Reshape, 2, 1, /Conv_output_0, /connect_model/cls_encode/Reshape_output_0

Input tensor name -  template_features
Output tensor name - /connect_model/cls_encode/Reshape_output_0
Initialized
In TIDL_onnxRtImportInit subgraph_name=_connect_model_cls_encode_Reshape_output_0
Layer 0, subgraph id _connect_model_cls_encode_Reshape_output_0, name=/connect_model/cls_encode/Reshape_output_0
Layer 1, subgraph id _connect_model_cls_encode_Reshape_output_0, name=template_features
In TIDL_runtimesOptimizeNet: LayerIndex = 4, dataIndex = 3

 ************** Frame index 1 : Running float import *************
In TIDL_runtimesPostProcessNet
/home/root/tidl_tools/tidl_graphVisualiser.out: error while loading shared libraries: libcgraph.so.6: cannot open shared object file: No such file or directory
****************************************************
**                ALL MODEL CHECK PASSED          **
****************************************************

************ in TIDL_subgraphRtCreate ************
 The soft limit is 2048
The hard limit is 2048
MEM: Init ... !!!
MEM: Init ... Done !!!
 0.0s:  VX_ZONE_INIT:Enabled
 0.6s:  VX_ZONE_ERROR:Enabled
 0.10s:  VX_ZONE_WARNING:Enabled
 0.1829s:  VX_ZONE_INIT:[tivxInit:184] Initialization Done !!!
TIDL_initDebugTraceParams Done
Alg Alloc for Layer # -    0
Alg Alloc for Layer # -    1
Alg Alloc for Layer # -    2
Alg Alloc for Layer # -    3
Alg Alloc for Layer # -    4
Alg Alloc for Layer # -    5

--------------------------------------------
TIDL Memory size requiement (record wise):
MemRecNum   , Space       , Attribute   , Size(KBytes)
0           , DDR Cacheable, Persistent  , 14.84
1           , DDR Cacheable, Persistent  , 0.14
2           , DDR Cacheable, Scratch     , 16.00
3           , DDR Cacheable, Scratch     , 4.00
4           , DDR Cacheable, Scratch     , 56.00
5           , DDR Cacheable, Persistent  , 258.00
6           , DDR Cacheable, Scratch     , 448.62
7           , DDR Cacheable, Scratch     , 0.12
8           , DDR Cacheable, Scratch     , 96.12
9           , DDR Cacheable, Scratch     , 515.00
10          , DDR Cacheable, Scratch     , 0.12
11          , DDR Cacheable, Persistent  , 201.12
12          , DDR Cacheable, Scratch     , 512.25
13          , DDR Cacheable, Persistent  , 0.12
14          , DDR Cacheable, Persistent  , 675.81
--------------------------------------------
Total memory size requirement (space wise):
Mem Space , Size(KBytes)
DDR Cacheable, 2798.29
--------------------------------------------
NOTE: Memory requirement in host emulation can be different from the same on EVM
      To get the actual TIDL memory requirement make sure to run on EVM with
      debugTraceLevel = 2

--------------------------------------------
Alg Init for Layer # -    0 out of    5
Alg Init for Layer # -    1 out of    5
Alg Init for Layer # -    2 out of    5
Alg Init for Layer # -    3 out of    5
Alg Init for Layer # -    4 out of    5
Alg Init for Layer # -    5 out of    5
PREEMPTION: Adding a new priority object for targetPriority = 2, handle = 0x7f8a4b00d000
PREEMPTION: Now total number of priority objects = 1 at priorityId = 2,    with new memRec of base = 0x7f8998084000 and size = 128
PREEMPTION: Requesting context memory addr for handle 0x7f8a4b00d000, return Addr = 0x7f8998084000
************ TIDL_subgraphRtCreate done ************
 Warning : Couldn't find corresponding ioBuf tensor for onnx tensor with matching name
*******   In TIDL_subgraphRtInvoke  ********
TIDL_activate is called with handle : 4b00d000
Starting Layer # -    1
Processing Layer # -    1
End of Layer # -    1 with outPtrs[0] = 0x7f89981d4000
Starting Layer # -    2
Processing Layer # -    2
End of Layer # -    2 with outPtrs[0] = 0x7f89981e4000
Starting Layer # -    3
Processing Layer # -    3
End of Layer # -    3 with outPtrs[0] = 0x7f89981f4000
Starting Layer # -    4
Processing Layer # -    4
End of Layer # -    4 with outPtrs[0] = 0x7f899834d000
TIDL_process is completed with handle : 4b00d000
 Layer,   Layer Cycles,kernelOnlyCycles, coreLoopCycles,LayerSetupCycles,dmaPipeupCycles, dmaPipeDownCycles, PrefetchCycles,copyKerCoeffCycles,LayerDeinitCycles,LastBlockCycles, paddingTrigger,    paddingWait,LayerWithoutPad,LayerHandleCopy,   BackupCycles,  RestoreCycles,

     1,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     2,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     3,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,
     4,              0,              0,              0,              0,              0,                 0,              0,                 0,              0,              0,              0,              0,              0,              0,              0,              0,

 Sum of Layer Cycles 0
Sub Graph Stats 12.000000 38914.000000 179.000000
*******  TIDL_subgraphRtInvoke done  ********

**********  Frame Index 1 : Running float inference **********
[array(0.646822, dtype=float32)]
Video processed and saved to outputs/test.mp4
************ in TIDL_subgraphRtDelete ************
 TIDL_deactivate is called with handle : 4b00d000
PREEMPTION: Removing priroty object with handle = 0x7f8a4b00d000 and targetPriority = 2,      Number of obejcts left are = 0, removed object with base  = 0x7f8998084000 and size =128
MEM: Deinit ... !!!
MEM: Alloc's: 26 alloc's of 4658204 bytes
MEM: Free's : 26 free's  of 4658204 bytes
MEM: Open's : 0 allocs  of 0 bytes
MEM: Deinit ... Done !!!



During the import process next two steps caught my attention:
Unsupported (TIDL check) TIDL layer type ---       Transpose
TIDL ALLOWLISTING LAYER CHECK -- [TIDL_TransposeLayer]  should be removed in import process. If not, this model will not work!

And I am wondering how the compilation process should be changed ?

  • Hi,

    Can you share following 2 things:

    1) Share runtimes_visualization.svg generated in artifacts folder.

    2) Set "deny_list:layer_type":"Reshape" and check if network works. Based on log, I see that Transpose layer is delegate to ARM correctly, so I suspect issue in Reshape layer. Setting Reshape in deny_list can help confirm the suspicion.

    Regards,

    Anand

  • I've rechecked with "deny_list:layer_type":"Reshape" and it works fine with it !

    Could you share what is the problem ?

    Also adding visualizations from artifacts folder.

    Default configuration:


    With denied reshape:

  • However, when I tried to run in on the device it fails:

    libtidl_onnxrt_EP loaded 0x390a000
    artifacts_folder                                = /home/root/model-artifacts/search_2/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 340282346638528859811704183484516925440.000000
    Final number of subgraphs created are : 1, - Offloaded Nodes - 1, Total Nodes - 3
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ************ in TIDL_subgraphRtCreate ************
     APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.13
    IPC: ERROR: Unable to create TX channels for CPU [mcu2_0] !!!
    IPC: Init ... Done !!!
    APP: ERROR: IPC init failed !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio5.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio4.rpmsg_chrdev.-1.21
    REMOTE_SERVICE: Init ... Done !!!
       125.639126 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       125.644518 s:  VX_ZONE_INIT:Enabled
       125.644546 s:  VX_ZONE_ERROR:Enabled
       125.644571 s:  VX_ZONE_WARNING:Enabled
       125.648328 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
       125.649531 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
       125.649821 s:  VX_ZONE_ERROR:[ownContextCreateCmdObj:161] context object descriptor [0] allocation failed
       125.649833 s:  VX_ZONE_ERROR:[vxCreateContext:945] context objection creation failed
       125.649856 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       125.649869 s:  VX_ZONE_ERROR:[tivxAddKernelTIDL:242] Unable to allocate user kernel ID
       125.649877 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       125.649885 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       125.649893 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       125.649900 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       125.649928 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.649940 s:  VX_ZONE_ERROR:[vxMapUserDataObject:473] Invalid user data object reference
       125.649948 s:  VX_ZONE_ERROR:[vxUnmapUserDataObject:558] Invalid user data object reference
       125.649958 s:  VX_ZONE_ERROR:[vxAddLogEntry:64] Invalid reference!
       125.649966 s:  VX_ZONE_ERROR:[vxCreateNodeByStructure:96] failed to retrieve kernel enum 0
       125.649974 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.649982 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.649989 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.649996 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.650003 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.650010 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.650018 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       125.650026 s:  VX_ZONE_ERROR:[vxVerifyGraph:1865] Invalid graph reference
       125.650034 s:  VX_ZONE_ERROR:[vxVerifyGraph:2120] Invalid graph reference
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
    

  • Ok, thanks for confirmation. I have a follow-up question on this: Are the Identity inputs to the Conv layer constant or variable inputs? We support only initializer/const inputs for weights and biases of the conv layer so if they are variable in the above network, it may run into issues. 

    Regards,

    Anand

  • Hi, weights and biases should be constant. To check whether is was the source of problem, I've removed Identity nodes from the onnx and directly connected constant initializers into Conv layer:



    However, I'm still getting the next error:

    libtidl_onnxrt_EP loaded 0x18045c40
    artifacts_folder                                = /home/root/model-artifacts/search_2/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 340282346638528859811704183484516925440.000000
    Final number of subgraphs created are : 1, - Offloaded Nodes - 1, Total Nodes - 3
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ************ in TIDL_subgraphRtCreate ************
     APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.13
    IPC: ERROR: Unable to create TX channels for CPU [mcu2_0] !!!
    IPC: Init ... Done !!!
    APP: ERROR: IPC init failed !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio4.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio5.rpmsg_chrdev.-1.21
    REMOTE_SERVICE: Init ... Done !!!
       155.826152 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
       155.831521 s:  VX_ZONE_INIT:Enabled
       155.831540 s:  VX_ZONE_ERROR:Enabled
       155.831552 s:  VX_ZONE_WARNING:Enabled
       155.835230 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
       155.836477 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
       155.836765 s:  VX_ZONE_ERROR:[ownContextCreateCmdObj:161] context object descriptor [0] allocation failed
       155.836777 s:  VX_ZONE_ERROR:[vxCreateContext:945] context objection creation failed
       155.836797 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       155.836808 s:  VX_ZONE_ERROR:[tivxAddKernelTIDL:242] Unable to allocate user kernel ID
       155.836817 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       155.836824 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       155.836832 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       155.836839 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
       155.836863 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836874 s:  VX_ZONE_ERROR:[vxMapUserDataObject:473] Invalid user data object reference
       155.836882 s:  VX_ZONE_ERROR:[vxUnmapUserDataObject:558] Invalid user data object reference
       155.836892 s:  VX_ZONE_ERROR:[vxAddLogEntry:64] Invalid reference!
       155.836900 s:  VX_ZONE_ERROR:[vxCreateNodeByStructure:96] failed to retrieve kernel enum 0
       155.836908 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836915 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836922 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836929 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836937 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836944 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836951 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
       155.836959 s:  VX_ZONE_ERROR:[vxVerifyGraph:1865] Invalid graph reference
       155.836966 s:  VX_ZONE_ERROR:[vxVerifyGraph:2120] Invalid graph reference
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
    



    Also, defaultly generated model artifacts are not working for me and model fails with next error:

    ************ in TIDL_subgraphRtCreate ************
     Invoke  : ERROR: Unable to open network file /home/root/model-artifacts/search_2//_Conv_output_0_tidl_net.bin


    Those bin files are present for me in search_2/tempDir and I just moved them out of the folder. The directory has next structure:

    search_2
    ├── allowedNode.txt
    ├── onnxrtMetaData.txt
    └── tempDir
        ├── _Conv_output_0_calib_raw_data.bin
        ├── _Conv_output_0_tidl_io_1.bin
        ├── _Conv_output_0_tidl_net.bin
        ├── _Conv_output_0_tidl_net.bin.layer_info.txt
        ├── _Conv_output_0_tidl_net.bin.svg
        ├── _Conv_output_0_tidl_net.bin_netLog.txt
        ├── graphvizInfo.txt
        └── runtimes_visualization.svg
    
    2 directories, 10 files

  • Okay, the problem with missing bin files was connected with the fact that I run smaller amount of inferences than needed by calibration parameters and after fixing it, the structure seems much better:

    search_2
    ├── _Conv_output_0_tidl_io_1.bin
    ├── _Conv_output_0_tidl_net.bin
    ├── allowedNode.txt
    ├── onnxrtMetaData.txt
    └── tempDir
        ├── _Conv_output_0_calib_raw_data.bin
        ├── _Conv_output_0_tidl_io_.perf_sim_config.txt
        ├── _Conv_output_0_tidl_io_.qunat_stats_config.txt
        ├── _Conv_output_0_tidl_io_1.bin
        ├── _Conv_output_0_tidl_io__LayerPerChannelMean.bin
        ├── _Conv_output_0_tidl_io__stats_tool_out.bin
        ├── _Conv_output_0_tidl_net
        │   ├── bufinfolog.csv
        │   ├── bufinfolog.txt
        │   └── perfSimInfo.bin
        ├── _Conv_output_0_tidl_net.bin
        ├── _Conv_output_0_tidl_net.bin.layer_info.txt
        ├── _Conv_output_0_tidl_net.bin.svg
        ├── _Conv_output_0_tidl_net.bin_netLog.txt
        ├── _Conv_output_0_tidl_net.bin_paramDebug.csv
        ├── graphvizInfo.txt
        └── runtimes_visualization.svg


    Nevertheless, I'm getting pretty much the same error when trying to run on the device itself:

    libtidl_onnxrt_EP loaded 0x5abee60
    artifacts_folder                                = /home/root/model-artifacts/search_2/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 340282346638528859811704183484516925440.000000
    Final number of subgraphs created are : 1, - Offloaded Nodes - 1, Total Nodes - 3
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ******** in TIDL_subgraphRtCreate ********
     APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.13
    IPC: ERROR: Unable to create TX channels for CPU [mcu2_0] !!!
    IPC: Init ... Done !!!
    APP: ERROR: IPC init failed !!!
    REMOTE_SERVICE: Init ... !!!
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio3.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio5.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio0.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio2.rpmsg_chrdev.-1.21
    _rpmsg_char_find_ctrldev: could not find the matching rpmsg_ctrl device for virtio4.rpmsg_chrdev.-1.21
    REMOTE_SERVICE: Init ... Done !!!
      2064.037292 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
      2064.042690 s:  VX_ZONE_INIT:Enabled
      2064.042712 s:  VX_ZONE_ERROR:Enabled
      2064.042724 s:  VX_ZONE_WARNING:Enabled
      2064.047237 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
      2064.048448 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
      2064.048736 s:  VX_ZONE_ERROR:[ownContextCreateCmdObj:161] context object descriptor [0] allocation failed
      2064.048748 s:  VX_ZONE_ERROR:[vxCreateContext:945] context objection creation failed
      2064.048765 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
      2064.048778 s:  VX_ZONE_ERROR:[tivxAddKernelTIDL:242] Unable to allocate user kernel ID
      2064.048786 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
      2064.048794 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
      2064.048801 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
      2064.048809 s:  VX_ZONE_ERROR:[vxGetStatus:713] Reference is NULL
      2064.048832 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048844 s:  VX_ZONE_ERROR:[vxMapUserDataObject:473] Invalid user data object reference
      2064.048853 s:  VX_ZONE_ERROR:[vxUnmapUserDataObject:558] Invalid user data object reference
      2064.048862 s:  VX_ZONE_ERROR:[vxAddLogEntry:64] Invalid reference!
      2064.048871 s:  VX_ZONE_ERROR:[vxCreateNodeByStructure:96] failed to retrieve kernel enum 0
      2064.048879 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048886 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048893 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048901 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048908 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048915 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048922 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      2064.048931 s:  VX_ZONE_ERROR:[vxVerifyGraph:1865] Invalid graph reference
      2064.048938 s:  VX_ZONE_ERROR:[vxVerifyGraph:2120] Invalid graph reference
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ******** TIDL_subgraphRtCreate done ********

  • I've fixed the problem with invalid reference by updating the processor sdk on SKTDA4VM to latest 08.06 version and it started to work:

    libtidl_onnxrt_EP loaded 0xe1c3e40
    artifacts_folder                                = /home/root/model-artifacts/template/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 340282346638528859811704183484516925440.000000
    Final number of subgraphs created are : 12, - Offloaded Nodes - 76, Total Nodes - 88
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ************ in TIDL_subgraphRtCreate ************
     APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
     25455.308030 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
     25455.308100 s:  VX_ZONE_INIT:Enabled
     25455.308108 s:  VX_ZONE_ERROR:Enabled
     25455.308116 s:  VX_ZONE_WARNING:Enabled
     25455.308737 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
     25455.309880 s:  VX_ZONE_INIT:[tivxHostInitLocal:93] Initialization Done for HOST !!!
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_1_1
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_2_2
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_3_3
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_4_4
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_5_5
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_6_6
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_7_7
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_8_8
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_9_9
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_10_10
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_11_11
    ************ in TIDL_subgraphRtCreate ************
     ************ TIDL_subgraphRtCreate done ************
    


    However, when I tried to run the same code on the BeagleBone AI-64, it is failing to get the shared memory:

    libtidl_onnxrt_EP loaded 0x3cf88350
    artifacts_folder                                = /home/debian/model-artifacts/template/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 1022549792
    Final number of subgraphs created are : 12, - Offloaded Nodes - 76, Total Nodes - 88
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ************ in TIDL_subgraphRtCreate ************
     APP: Init ... !!!
    APP_LOG: ERROR: Unable to open /dev/mem !!!
    APP_LOG: ERROR: Unable to map memory @ 0xa90000 of size 512 bytes !!!
    APP_LOG: ERROR: Unable to mmap gtc (0xa90000 of 512 bytes) !!!
    APP: ERROR: Global timer init failed !!!
    APP_LOG: ERROR: Unable to open /dev/mem !!!
    APP_LOG: ERROR: Unable to map memory @ 0xb2000000 of size 262144 bytes !!!
    APP: ERROR: Log writer init failed !!!
    APP: Init ... Done !!!
    Segmentation fault
    


    Running under the sudo, does not help either:

    libtidl_onnxrt_EP loaded 0x351d6c90
    artifacts_folder                                = /home/debian/model-artifacts/template/
    debug_level                                     = 6
    target_priority                                 = 0
    max_pre_empt_delay                              = 890751088
    Final number of subgraphs created are : 12, - Offloaded Nodes - 76, Total Nodes - 88
    In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_0_0
    ************ in TIDL_subgraphRtCreate ************
     APP: Init ... !!!
    MEM: Init ... !!!
    MEM: Initialized DMA HEAP (fd=4) !!!
    MEM: Init ... Done !!!
    IPC: Init ... !!!
    IPC: Init ... Done !!!
    REMOTE_SERVICE: Init ... !!!
    REMOTE_SERVICE: Init ... Done !!!
      3967.935786 s: GTC Frequency = 200 MHz
    APP: Init ... Done !!!
      3967.935883 s:  VX_ZONE_INIT:Enabled
      3967.935893 s:  VX_ZONE_ERROR:Enabled
      3967.935899 s:  VX_ZONE_WARNING:Enabled
      3967.936509 s:  VX_ZONE_INIT:[tivxInitLocal:130] Initialization Done !!!
      3967.936686 s:  VX_ZONE_INIT:[tivxHostInitLocal:86] Initialization Done for HOST !!!
      3968.133222 s:  VX_ZONE_ERROR:[ownContextSendCmd:815] Command ack message returned failure cmd_status: -1
      3968.133257 s:  VX_ZONE_ERROR:[ownContextSendCmd:851] tivxEventWait() failed.
      3968.133270 s:  VX_ZONE_ERROR:[ownNodeKernelInit:538] Target kernel, TIVX_CMD_NODE_CREATE failed for node TIDLNode
      3968.133281 s:  VX_ZONE_ERROR:[ownNodeKernelInit:539] Please be sure the target callbacks have been registered for this core
      3968.133292 s:  VX_ZONE_ERROR:[ownNodeKernelInit:540] If the target callbacks have been registered, please ensure no errors are occurring within the create callback of this kernel
      3968.133300 s:  VX_ZONE_ERROR:[ownGraphNodeKernelInit:583] kernel init for node 0, kernel com.ti.tidl ... failed !!!
      3968.133309 s:  VX_ZONE_ERROR:[vxVerifyGraph:2055] Node kernel init failed
      3968.133316 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_1_1
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.135707 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.135728 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.136091 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.136126 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.136136 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.136149 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.136316 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.136329 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.136339 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_2_2
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.138593 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.138604 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.138876 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.138931 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.138943 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.138958 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.139119 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.139131 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.139142 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_3_3
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.158028 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.158044 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.158355 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.158375 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.158387 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.158402 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.158560 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.158572 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.158586 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_4_4
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.161304 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.161324 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.161567 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.161587 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.161595 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.161639 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.161804 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.161851 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.161862 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_5_5
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.164636 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.164647 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.164884 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.164903 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.164910 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.164922 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.165105 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.165118 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.165127 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_6_6
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.167940 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.167950 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.168225 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.168247 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.168255 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.168302 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.168469 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.168481 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.168494 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_7_7
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.171649 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.171670 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.171918 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.171938 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.171947 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.171990 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.172156 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.172168 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.172181 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_8_8
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.175268 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.175278 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.198021 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.198046 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.198058 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.198073 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.198242 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.198255 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.198268 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_9_9
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.201791 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.201849 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.202135 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.202190 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.202201 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.202215 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.202390 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.202403 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.202413 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_10_10
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.205540 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.205551 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.205791 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.205811 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.205852 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.205900 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.206064 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.206077 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.206087 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
     In TIDL_createStateInfer
    Compute on node : TIDLExecutionProvider_TIDL_11_11
    ************ in TIDL_subgraphRtCreate ************
     MEM: ERROR: Alloc failed with status = 12 !!!
      3968.208997 s:  VX_ZONE_ERROR:[tivxMemBufferAlloc:80] Shared mem ptr allocation failed
      3968.209020 s:  VX_ZONE_ERROR:[ownAllocUserDataObjectBuffer:96] Could not allocate user data object memory
      3968.209270 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:257] Invalid type 0x00000811!
      3968.209292 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:305] Specified: parameter[5] type:00000811 => 0xffff96393e58
      3968.209299 s:  VX_ZONE_ERROR:[vxSetParameterByIndex:307] Required: parameter[5] dir:1 type:00000816
      3968.209342 s:  VX_ZONE_ERROR:[vxSetReferenceName:659] Invalid reference
      3968.209518 s:  VX_ZONE_ERROR:[ownGraphNodeKernelValidate:531] node kernel validate failed for kernel com.ti.tidl at index 0
      3968.209530 s:  VX_ZONE_ERROR:[vxVerifyGraph:1941] Node kernel Validate failed
      3968.209542 s:  VX_ZONE_ERROR:[vxVerifyGraph:2109] Graph verify failed
    TIDL_RT_OVX: ERROR: Verifying TIDL graph ... Failed !!!
    TIDL_RT_OVX: ERROR: Verify OpenVX graph failed
    ************ TIDL_subgraphRtCreate done ************
    

  • Hi Roman,


    How did you build the image? or which version of image are you using? The IPC to C7x core is failing, did you manage to run some out-of-box demos first with the image you are trying?

  • Hi,

    The main issue was that I built the model using 08.06.03 processor SDK and beaglebone ai-64 had 08.02.

    It was found by looking into /opt/vision_apps/vx_app_arm_remote_log.out In particular:

    [C7x_1 ] 587.448501 s: VX_ZONE_ERROR:[tivxKernelTIDLCreate:644] Network version - 0x20230208, Expected version - 0x20211201

    For now, I solved all my issues. Thank you for your help