Forums - snpe build error

6 posts / 0 new
Last post
snpe build error
15711303206
Join Date: 25 Sep 21
Posts: 5
Posted: Fri, 2022-01-07 01:38

snpe = snpeBuilder.setRuntimeProcessorOrder(runtimeList).build();

I want to use snpe  run udo on 865 dsp, but build snpe object return nullptr

how to solve the problem?thanks

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sun, 2022-01-09 17:01

Dear customer,

What's SNPE version you testd?

Have you checked the specific target runtime with checkingRuntime() interface? I'm not sure about the input parameter of your runtimeList. Also, you can check minidm-log or QXDM logs, which capture DSP logs.

BR.

Wei

  • Up0
  • Down0
15711303206
Join Date: 25 Sep 21
Posts: 5
Posted: Sun, 2022-01-09 17:23

thansk for your reply

my snpe version is 1.54.2

runtimeList only contain DSP

I check minidm-log, but nothing usefull, 

 

[08522/02]  13:51.295  CDSP: A new client registered with DCVS with client id: 3  0324  sysmon_dcvs_clients.c
[08522/01]  13:51.295  CDSP: DCVS aggregated state request to ADSPPM: 1  2202  sysmon_dcvs_clients.c
[08522/02]  13:51.295  CDSP: SysMon DCVS is being enabled by ADSPPM  0079  sysmon_dcvs_adsppm.c
[08522/01]  13:51.295  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: 0, HFW Window: 20  0499  sysmon_dcvs.c
[08522/00]  13:51.295  CDSP: new DCVS target vote: core clk: 961000 kHz  1836  sysmon_dcvs_clients.c
[08522/01]  13:51.295  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: 0, HFW Window: 20  0499  sysmon_dcvs.c
[08522/00]  13:51.295  CDSP: new DCVS target vote: bus clk: 805000 kHz  1932  sysmon_dcvs_clients.c
[08522/00]  13:51.295  CDSP: Aggregated client class update from QDSPPM: 0x4  0560  sysmon_prof.c
[08522/01]  13:51.295  CDSP: DCVS aggregated client class request for DSPPM: 0x4  1618  sysmon_dcvs_clients.c
[08522/02]  13:51.295  CDSP: DCVS client with client id: 3, updated its request successfully; DCVS Enable/Option: 1 / 1, Sleep Latency Enable/Value: 1 / 1000, Corner votes Enable/(min, target, max): 1 / (0, 4, 0)  0851  sysmon_dcvs_clients.c
[08500/02]  13:51.295  00: CDSP:fastrpc_kpower_set: Request = HAP_power_set_DCVS_v2, Client ID = 113, Client ID for adsp dcvs = 3   1337  fastrpc_kpower.c
[08500/02]  13:51.295  00: CDSP:power set request asid= 12  0901  platform_qdi_driver.c
[08522/01]  13:51.295  CDSP: DCVS aggregated sleep latency request for ADSPPM: 1000 us  1572  sysmon_dcvs_clients.c
[08500/02]  13:51.295  340e5:0c: CDSP: Adaptive QoS not supported on this target  1293  fastrpc_uprocess.c
[08500/02]  13:51.300  300d5:0c: CDSP: remote_handle_open: opened handle 0x0 for apps_remotectl  0147  listener_hexagon.c
[08500/02]  13:51.302  300d5:0c: CDSP: remote_handle_open: opened handle 0x82ff3088 for apps_std  0147  listener_hexagon.c
[08500/02]  13:51.306  300d5:0c: CDSP: remote_handle_open: opened handle 0x82ff3188 for apps_mem  0147  listener_hexagon.c
[08500/03]  13:51.326  300d5:0c: CDSP: _rtld_map_object_ex: cannot open libhta_dsp_debug.so, errno 2 (no such file or directory)  0528  map_object.c
[08500/03]  13:51.326  300d5:0c: CDSP: Error: dlopen_ex failed for libhta_dsp_debug.so (flags 514)  0852  rtld.c
[08500/03]  13:51.326  300d5:0c: CDSP: HexagonNpu::LoadNpuDspLib: dlopen of <libhta_dsp_debug.so> failed, use static lib instead  0054  HexagonNpu.cpp
[08500/02]  13:51.327  300d5:0c: CDSP: open_mod_table_open_dynamic: Module snpe_dsp_domains_v2_skel_handle_invoke opened with handle 0xee2e50  0541  mod_table.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  13:51.393  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08522/02]  13:51.393  CDSP: SysMon DCVS is being disabled by ADSPPM  0093  sysmon_dcvs_adsppm.c
[08522/01]  13:51.395  CDSP: DCVS aggregated state request to ADSPPM: 0  2202  sysmon_dcvs_clients.c
[08522/01]  13:51.395  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08522/01]  13:51.395  CDSP: NPA Callback: Actual values: DSP core clock: 364800 KHz, Extrapolated values: Core voltage corner: 3  3190  sysmon_prof.c
[08522/00]  13:51.395  CDSP: new DCVS target vote: core clk: 0 kHz  1836  sysmon_dcvs_clients.c
[08522/00]  13:51.395  CDSP: Aggregated client class update from QDSPPM: 0x0  0560  sysmon_prof.c
[08522/00]  13:51.395  CDSP: new DCVS target vote: bus clk: 0 kHz  1932  sysmon_dcvs_clients.c
[08522/01]  13:51.395  CDSP: DCVS aggregated client class request for DSPPM: 0x0  1618  sysmon_dcvs_clients.c
[08522/02]  13:51.395  CDSP: DCVS client with client id: 3 is deregistered  0396  sysmon_dcvs_clients.c
[08522/01]  13:51.395  CDSP: ICB Callback: Ab: 0 KBps, Ib: 9765 KBps, Extrapolated values: Bus clock: 150000 kHz, Bus voltage level: 3  3124  sysmon_prof.c
[08522/01]  13:51.395  CDSP: DCVS aggregated sleep latency request for ADSPPM: 65535 us  1572  sysmon_dcvs_clients.c
[08522/01]  13:51.395  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08500/02]  13:51.395  00: CDSP:fastrpc_kill done for pidA 7012 (asid 12, SID 3)  1246  fastrpc_loader.c
[08522/01]  15:34.548  CDSP: DCVS aggregated state request to ADSPPM: 1  2202  sysmon_dcvs_clients.c
[08522/02]  15:34.548  CDSP: SysMon DCVS is being enabled by ADSPPM  0079  sysmon_dcvs_adsppm.c
[08522/01]  15:34.548  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: 0, HFW Window: 20  0499  sysmon_dcvs.c
[08522/00]  15:34.550  CDSP: new DCVS target vote: core clk: 961000 kHz  1836  sysmon_dcvs_clients.c
[08522/00]  15:34.550  CDSP: new DCVS target vote: bus clk: 805000 kHz  1932  sysmon_dcvs_clients.c
[08522/00]  15:34.550  CDSP: Aggregated client class update from QDSPPM: 0x4  0560  sysmon_prof.c
[08522/01]  15:34.550  CDSP: DCVS aggregated client class request for DSPPM: 0x4  1618  sysmon_dcvs_clients.c
[08522/02]  15:34.550  CDSP: DCVS client with client id: 1, updated its request successfully; DCVS Enable/Option: 1 / 1, Sleep Latency Enable/Value: 0 / 0, Corner votes Enable/(min, target, max): 1 / (0, 4, 0)  0851  sysmon_dcvs_clients.c
[08522/01]  15:34.550  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: 0, HFW Window: 50  0499  sysmon_dcvs.c
[08500/02]  15:34.550  00: CDSP:fastrpc_kpower_set: Request = HAP_power_set_DCVS_v2, Client ID = 9, Client ID for adsp dcvs = 1   1337  fastrpc_kpower.c
[08500/02]  15:34.550  00: CDSP:fastrpc_spawn: Creating unsigned process for /frpc/c04e6940 dli-snpe-run (SID 3)  1019  fastrpc_loader.c
[08500/02]  15:34.561  00: CDSP:mbserver_thread: waiting for futex to start mailbox server  0121  mbserver.c
[08500/02]  15:34.561  00: CDSP:mbserver_thread: got signal, starting mailbox server  0131  mbserver.c
[08500/02]  15:34.561  00: CDSP:fastrpc_spawn: Successfully spawned user PD for dli-snpe-run (pidA 7448) with asid 12, SID 3 and load addr 0xe00000  1044  fastrpc_loader.c
[08522/02]  15:34.561  CDSP: SysMon DCVS is being disabled by ADSPPM  0093  sysmon_dcvs_adsppm.c
[08522/01]  15:34.561  CDSP: DCVS aggregated state request to ADSPPM: 0  2202  sysmon_dcvs_clients.c
[08522/01]  15:34.561  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08522/00]  15:34.561  CDSP: new DCVS target vote: core clk: 0 kHz  1836  sysmon_dcvs_clients.c
[08522/00]  15:34.561  CDSP: Aggregated client class update from QDSPPM: 0x0  0560  sysmon_prof.c
[08522/00]  15:34.562  CDSP: new DCVS target vote: bus clk: 0 kHz  1932  sysmon_dcvs_clients.c
[08522/01]  15:34.562  CDSP: DCVS aggregated client class request for DSPPM: 0x0  1618  sysmon_dcvs_clients.c
[08522/02]  15:34.562  CDSP: DCVS client with client id: 1, updated its request successfully; DCVS Enable/Option: 0 / 1, Sleep Latency Enable/Value: 0 / 0, Corner votes Enable/(min, target, max): 1 / (0, 0, 0)  0851  sysmon_dcvs_clients.c
[08522/01]  15:34.562  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08500/02]  15:34.562  00: CDSP:fastrpc_kpower_set: Request = HAP_power_set_DCVS_v2, Client ID = 9, Client ID for adsp dcvs = 1   1337  fastrpc_kpower.c
[08500/02]  15:34.563  00: CDSP:HVX power request successful for client 114  0875  fastrpc_kpower.c
[08500/02]  15:34.563  00: CDSP:fastrpc_kpower_set: Request = HAP_power_set_HVX, Client ID = 114   1319  fastrpc_kpower.c
[08522/02]  15:34.563  CDSP: A new client registered with DCVS with client id: 3  0324  sysmon_dcvs_clients.c
[08522/01]  15:34.565  CDSP: DCVS aggregated state request to ADSPPM: 1  2202  sysmon_dcvs_clients.c
[08522/02]  15:34.565  CDSP: SysMon DCVS is being enabled by ADSPPM  0079  sysmon_dcvs_adsppm.c
[08522/01]  15:34.565  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: 0, HFW Window: 20  0499  sysmon_dcvs.c
[08522/00]  15:34.565  CDSP: new DCVS target vote: core clk: 961000 kHz  1836  sysmon_dcvs_clients.c
[08522/00]  15:34.565  CDSP: new DCVS target vote: bus clk: 805000 kHz  1932  sysmon_dcvs_clients.c
[08522/00]  15:34.565  CDSP: Aggregated client class update from QDSPPM: 0x4  0560  sysmon_prof.c
[08522/01]  15:34.565  CDSP: DCVS aggregated client class request for DSPPM: 0x4  1618  sysmon_dcvs_clients.c
[08522/02]  15:34.565  CDSP: DCVS client with client id: 3, updated its request successfully; DCVS Enable/Option: 1 / 1, Sleep Latency Enable/Value: 1 / 1000, Corner votes Enable/(min, target, max): 1 / (0, 4, 0)  0851  sysmon_dcvs_clients.c
[08500/02]  15:34.565  00: CDSP:fastrpc_kpower_set: Request = HAP_power_set_DCVS_v2, Client ID = 115, Client ID for adsp dcvs = 3   1337  fastrpc_kpower.c
[08500/02]  15:34.565  00: CDSP:power set request asid= 12  0901  platform_qdi_driver.c
[08522/01]  15:34.565  CDSP: DCVS aggregated sleep latency request for ADSPPM: 1000 us  1572  sysmon_dcvs_clients.c
[08522/01]  15:34.565  CDSP: QDSPPM votes: ADSP vote: 961000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: 0, HFW Window: 50  0499  sysmon_dcvs.c
[08500/02]  15:34.565  350e5:0c: CDSP: Adaptive QoS not supported on this target  1293  fastrpc_uprocess.c
[08500/02]  15:34.571  310d5:0c: CDSP: remote_handle_open: opened handle 0x0 for apps_remotectl  0147  listener_hexagon.c
[08500/02]  15:34.575  310d5:0c: CDSP: remote_handle_open: opened handle 0x5673b088 for apps_std  0147  listener_hexagon.c
[08500/02]  15:34.577  310d5:0c: CDSP: remote_handle_open: opened handle 0x5673b188 for apps_mem  0147  listener_hexagon.c
[08500/03]  15:34.597  310d5:0c: CDSP: _rtld_map_object_ex: cannot open libhta_dsp_debug.so, errno 2 (no such file or directory)  0528  map_object.c
[08500/03]  15:34.597  310d5:0c: CDSP: Error: dlopen_ex failed for libhta_dsp_debug.so (flags 514)  0852  rtld.c
[08500/03]  15:34.597  310d5:0c: CDSP: HexagonNpu::LoadNpuDspLib: dlopen of <libhta_dsp_debug.so> failed, use static lib instead  0054  HexagonNpu.cpp
[08500/02]  15:34.597  310d5:0c: CDSP: open_mod_table_open_dynamic: Module snpe_dsp_domains_v2_skel_handle_invoke opened with handle 0xee2e90  0541  mod_table.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08500/03]  15:34.675  00: CDSP:Error 0xffffffff: ftq_thread_wake_locked failed   0735  fastrpc_thread_queue.c
[08522/02]  15:34.675  CDSP: SysMon DCVS is being disabled by ADSPPM  0093  sysmon_dcvs_adsppm.c
[08522/01]  15:34.675  CDSP: DCVS aggregated state request to ADSPPM: 0  2202  sysmon_dcvs_clients.c
[08522/01]  15:34.675  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 669750 KBps; Ib: 6697500 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08522/01]  15:34.675  CDSP: NPA Callback: Actual values: DSP core clock: 364800 KHz, Extrapolated values: Core voltage corner: 3  3190  sysmon_prof.c
[08522/00]  15:34.675  CDSP: new DCVS target vote: core clk: 0 kHz  1836  sysmon_dcvs_clients.c
[08522/00]  15:34.675  CDSP: Aggregated client class update from QDSPPM: 0x0  0560  sysmon_prof.c
[08522/00]  15:34.675  CDSP: new DCVS target vote: bus clk: 0 kHz  1932  sysmon_dcvs_clients.c
[08522/01]  15:34.675  CDSP: DCVS aggregated client class request for DSPPM: 0x0  1618  sysmon_dcvs_clients.c
[08522/02]  15:34.675  CDSP: DCVS client with client id: 3 is deregistered  0396  sysmon_dcvs_clients.c
[08522/01]  15:34.675  CDSP: ICB Callback: Ab: 0 KBps, Ib: 9765 KBps, Extrapolated values: Bus clock: 150000 kHz, Bus voltage level: 3  3124  sysmon_prof.c
[08522/01]  15:34.675  CDSP: DCVS aggregated sleep latency request for ADSPPM: 65535 us  1572  sysmon_dcvs_clients.c
[08522/01]  15:34.675  CDSP: QDSPPM votes: ADSP vote: 80000 kHz, BUS vote: Ab: 0 KBps; Ib: 0 KBps, DCVS mode: DISABLED  0514  sysmon_dcvs.c
[08500/02]  15:34.676  00: CDSP:fastrpc_kill done for pidA 7448 (asid 12, SID 3)  1246  fastrpc_loader.c
  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sun, 2022-01-09 18:13

Dear customer,

There needs more parameters for snpeBuilder like as below.

  snpe = snpeBuilder.setOutputLayers({})
             .setRuntimeProcessorOrder(runtimeList)
             .setUseUserSuppliedBuffers(useUserSuppliedBuffers)
             .setPlatformConfig(platformConfig)
             .setProfilingLevel(zdl::DlSystem::ProfilingLevel_t::OFF)
             .setPerformanceProfile(zdl::DlSystem::PerformanceProfile_t::BALANCED)
             .setInitCacheMode(useCaching)
             .build();

 

Please paste above code snippet to your code.

BR.

Wei

  • Up0
  • Down0
15711303206
Join Date: 25 Sep 21
Posts: 5
Posted: Tue, 2022-01-11 01:26

Thanks I use your snippet code, but got same error as before

Can method build return more informations?

Now just nullptr, hard to debug

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sun, 2022-01-16 18:00

Dear customer,

Could you help to try your model with snpe-net-run for verify the platform has any problem to support SNPE? Or you can take awareness from the logcat.

BR.

Wei

  • Up0
  • Down0
or Register

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.