Forums - Issue in running model on HTPs of SoC 1 and SoC 2

1 post / 0 new
Issue in running model on HTPs of SoC 1 and SoC 2
niranjans4
Join Date: 13 Apr 22
Posts: 3
Posted: Fri, 2022-08-05 08:16

Issue:

While executing qaic-runner  for SoC 1 or SoC 2 by command line argument -d as 1000 and 1001 respectively, we are getting error saying Failed to load NetworkImage.

Steps followed:

1. Generate binaries for SoC 1: 

      ./qaic_network_builder.py -n onnx -p /SA8540_testing/Jellyfish_fp32/ -d="-aic-num-cores=1 -aic-hw -compile-only -aic-hw-version=2.0 -m=/SA8540_testing/Jellyfish_fp32/mobilenetv2-12_batch_1.onnx -aic-binary-dir=/SA8540_testing/compiled_output_fp32/ -device-id=1000"

2. Extract and copy program binaries to hardware using FTP

3. Execute Qaic-runner with copied binaries and test input binary file.

# qaic-runner -t /data/AI_SDK/fp32/ -i /data/AI_SDK/fp32/jellyfish.raw --write-output-dir /data/AI_SDK/fp32/all_out/ -d 1000

loading /mnt/lib64/libQAic.so
Device: ID 1000
Test path: /data/AI_SDK/fp32/
Input file: /data/AI_SDK/fp32/jellyfish.raw
Number of activations: 1
[01:15:17.873][warning][QPrdKmdDeviceFactory][getDevices:#54] failed to open dev /dev/qaic: No such process
WARNING : [1970-01-01 01:15:17.930] [LogCommon] [warning] [init] Network Descriptor support features that may not be supported by this library, program network desc version 8.2, library supports 8.0

ERROR : [01:15:17.944][error][QRuntime][loadImage:#116] Failed to load network image with name (NetworkImage), error INVAL

ERROR : [01:15:17.944][error][LogCommon][getDeviceImage:#596] Failed to create Image

ERROR : [01:15:17.944][error][Aic-0][ProgDev:Id:  0,L: 999] Failed to get deviceImage

ERROR : [01:15:17.944][error][Aic-0][ProgDev:Id:  0,L: 579] Unexpected state STATE_PROGRAM_LOAD_ERROR

QAIC_ERROR_PROGRAM_RUNTIME_LOAD_FAILED Failed to Load programContextId:0
ERROR : [01:15:17.944][error][Aic-0][ExecObj:Id:  0,L1344]  Error loading program

QIAC_ERROR_EXECOBJ_RUNTIME [ExecObj:Id:  0,L1344]  Error loading programContextId:0
ERROR : [01:15:17.944][error][Aic-0][ProgDev:Id:  0,L: 915] Failed to Deactivate, invalid state detected in program state:STATE_PROGRAM_LOAD_ERROR

ERROR : [01:15:17.944][error][Aic-0][Program:Id:  0,L: 515] Failed to deactivate in putActivationHandle processing

ERROR : [01:15:17.955][error][Aic-0][ProgDev:Id:  0,L: 915] Failed to Deactivate, invalid state detected in program state:STATE_PROGRAM_LOAD_ERROR

Exception Caught during initialization: Initialization Exception: ExecObj

Failed to initialize QAIC runner

# 

 

Currently Qaic-runner is not able to initialize due to error in loading NetworkImage.

 

Please guide us.

  • Up0
  • Down0

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.