Intel® Distribution of OpenVINO™ Toolkit
Community assistance about the Intel® Distribution of OpenVINO™ toolkit, OpenCV, and all aspects of computer vision-related on Intel® platforms.

The command works in openvino 2018R5 and doesn't work in openvino 2019R1. I don't know why, could anyone help me?

li__lang
Beginner
763 Views

In openvino 2019R1,I can successfully run "./classification_sample -d CPU -m *** -i ***", but errorly run “./classification_sample -d HETERO:FPGA,CPU”. And the error message is :

 

acl_hal_mmd.c:1393:assert failure: Failed to initialize kernel interface

classification_sample: acl_hal_mmd.c:1393: l_try_device: Assertion `0' failed.

 

For the environment of openvino 2019R1: 

system:centos 7.6.1810

kernel: 3.10.0-957.1.3.el7.x86_64

Acceleration Stack version:69528db6-eb31-577a-8c36-68f9faa081f6 (1.2 production)

The following is the detailed messages:

1.png

0 Kudos
6 Replies
Shubha_R_Intel
Employee
763 Views

Dear lang:

This doesn't look like a DLA or OpenCL error message.  Seems like the board isn't being detected.  

Thanks for using OpenVino !

Shubha

 

0 Kudos
ALobo1
Novice
763 Views

I am having the same issue in OpenVINO 2019R1. classification_sample -d CPU -m *** works but

classification_sample -d HETERO:FPGA,CPU does not.

(-d HETERO:FPGA,CPU worked fine in 2018R5). Also I am able to run all steps up to "Use the Intel® Distribution of OpenVINO™ toolkit" step 3

at the following tutorial link:

https://docs.openvinotoolkit.org/latest/_docs_install_guides_PAC_Configure_2019R1.html#hello_world_face_detection_tutorial

The successful steps included "Program a Bitstream".

 

My environment is:

system:centos 7.6.1810

kernel: 3.10.0-693.el7.x86_64

Acceleration Stack version:69528db6-eb31-577a-8c36-68f9faa081f6 (1.2 production)

 

Commands:

sudo fpgainfo fme
Board Management Controller, microcontroller FW version unavailable
Last Power Down Cause: unavailable
Last Reset Cause: unavailable (can't open)
//****** FME ******//
Object Id                     : 0xF000000
PCIe s:b:d:f                  : 0000:D8:00:0
Device Id                     : 0x09C4
Socket Id                     : 0x00
Ports Num                     : 01
Bitstream Id                  : 0x123000200000185
Bitstream Version             : 0x55E300030201
Pr Interface Id               : 69528db6-eb31-577a-8c36-68f9faa081f6

 

 

classification_sample -m squeezenet1.1.xml -i /opt/intel/openvino_2019.1.094/deployment_tools/demo/car.png -d HETERO:FPGA,CPU
[ INFO ] InferenceEngine:
    API version ............ 1.6
    Build .................. custom_releases/2019/R1_c9b66a26e4d65bb986bb740e73f58c6e9e84c7c2
[ INFO ] Parsing input parameters
[ INFO ] Files were added: 1
[ INFO ]     /opt/intel/openvino_2019.1.094/deployment_tools/demo/car.png
[ INFO ] Loading plugin

    API version ............ 1.6
    Build .................. heteroPlugin
    Description ....... heteroPlugin
[ INFO ] Loading network files:
    squeezenet1.1.xml
    squeezenet1.1.bin
[ INFO ] Preparing input blobs
[ WARNING ] Image is resized from (787, 259) to (227, 227)
[ INFO ] Batch size is 1
[ INFO ] Preparing output blobs
[ INFO ] Loading model to the plugin
FAILED to read auto-discovery string at byte 44. Full auto-discovery string value is 17 c12babe577632f8d6172495d8daa78017e42fb2a pac_a10 0 0 2 1024 0 4294967296 4294967296 8589934592 0 7 DLA_VERSION_4_4x2x16x64_fp11_sb18823_i1_actk8_poolk8_owk8_image224x224 0 128 0 0 1 0 1 0 0 0 0 1 1 1 3 1 1 1 0 bias_reader 256 128 0 0 1 0 1 0 2 2 1 8 2 1 8 0 0 1 1 1 3 1 1 1 0 config_reader 512 128 0 0 1 0 1 0 2 2 1 8 0 0 4 0 0 1 1 1 3 1 1 1 0 filter_reader 768 256 0 0 1 0 1 0 6 2 1 8 2 1 8 0 0 4 0 0 4 0 0 4 0 0 4 0 0 1 1 1 3 1 1 1 0 input_reader 1024 128 0 0 1 0 1 0 4 2 1 8 2 1 8 0 0 4 0 0 4 0 0 1 1 1 3 1 1 1 0 output_writer 1280 128 0 0 1 0 1 0 2 2 1 8 2 1 8 0 0 1 1 1 3 1 1 1 0 perf_writer 1536 128 0 0 1 0 1 0 1 2 1 8 0 0 1 1 1 3 1 1 1 0
acl_hal_mmd.c:1393:assert failure: Failed to initialize kernel interfaceclassification_sample: acl_hal_mmd.c:1393: l_try_device: Assertion `0' failed.
Aborted (core dumped)

 

Can you provide any suggestions?

0 Kudos
ALobo1
Novice
763 Views

The issue was solved by setting the INTELFPGAOCLSDKROOT variable in init_openvino.sh to /opt/altera/aocl-pro-rte/aclrte-linux64 (the

folder for the 18.1.2 version of OpenCL RTE installed by OpenVINO 2019R1). Thanks to Jim Moawad from Intel Programmable Solutions Group.

0 Kudos
li__lang
Beginner
763 Views

Dear Arthur:

    Thanks for your solution!

     Another way is to modify the INTELFPGAOCLSDKROOT  in ***/intelrtestack/init_env.sh to /opt/altera/aocl-pro-rte/aclrte-linux64.

My init_openvino.sh is:    

source ***/intelrtestack/init_env.sh
export CL_CONTEXT_COMPILER_MODE_ALTERA=3
export CL_CONTEXT_COMPILER_MODE_INTELFPGA=3
export ALTERAOCLSDKROOT=$INTELFPGAOCLSDKROOT
source ***/openvino/bin/setupvars.sh

 

0 Kudos
jjunn
Beginner
763 Views

I am having the same issue with Lobo, Arthur.  But I don't have /opt/altera/aocl-pro-rte/aclrte-linux64. I install the dev version,not the rte version.

0 Kudos
jjunn
Beginner
763 Views

I am having the same issue with Lobo, Arthur

I install the dev(18.2GB) ,not the runtime(200MB) ,so I don't have /opt/altera/aocl-pro-rte/aclrte-linux64. 

and here is my init_openvino.sh

how can i do to solve this problem

source ***/tools/inteldevstack/init_env.sh
02
	export CL_CONTEXT_COMPILER_MODE_ALTERA=3
03
	export CL_CONTEXT_COMPILER_MODE_INTELFPGA=3
04
	export INTELFPGAOCLSDKROOT="***/tools/inteldevstack/intelFPGA_pro/hld"
05
	export ALTERAOCLSDKROOT="\$INTELFPGAOCLSDKROOT"
06
	export AOCL_BOARD_PACKAGE_ROOT="***/tools/inteldevstack/a10_gx_pac_ias_1_2_pv/opencl/opencl_bsp"
07
	***/tools/inteldevstack/a10_gx_pac_ias_1_2_pv/opencl/opencl_bsp/linux64/libexec/setup_permissions.sh
08
	source***/tools/inteldevstack/intelFPGA_pro/hld/init_opencl.sh
09
	export IE_INSTALL="/opt/intel/openvino/deployment_tools"
10
	source /opt/intel/openvino/bin/setupvars.sh
11
	export PATH=$PATH:***/inference_engine_samples_build/intel64/Release
12
	alias mo="python3.6 \$IE_INSTALL/model_optimizer/mo.py"

 

0 Kudos
Reply