Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Titanameda
Beginner
596 Views

openvino : what is the reason for this , how to resolve?

after running this script , the following errors are obtained

script: ./demo_squeezenet_download_convert_run.sh

ERRORS:

 

 

################|| Downloading models ||################

 

========== Retrieving /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.prototxt from the cache

 

========== Downloading /root/openvino_models/models/public/squeezenet1.1/squeezenet1.1.caffemodel

Traceback (most recent call last):

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen

  chunked=chunked)

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request

  self._validate_conn(conn)

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn

  conn.connect()

 File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect

  ssl_context=context)

 File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 332, in ssl_wrap_socket

  return context.wrap_socket(sock, server_hostname=server_hostname)

 File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket

  _context=self, _session=session)

 File "/usr/lib/python3.6/ssl.py", line 817, in __init__

  self.do_handshake()

 File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake

  self._sslobj.do_handshake()

 File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake

  self._sslobj.do_handshake()

ConnectionResetError: [Errno 104] Connection reset by peer

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

 File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 449, in send

  timeout=timeout

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 639, in urlopen

  _stacktrace=sys.exc_info()[2])

 File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 367, in increment

  raise six.reraise(type(error), error, _stacktrace)

 File "/usr/lib/python3/dist-packages/six.py", line 692, in reraise

  raise value.with_traceback(tb)

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 601, in urlopen

  chunked=chunked)

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 346, in _make_request

  self._validate_conn(conn)

 File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 852, in _validate_conn

  conn.connect()

 File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 326, in connect

  ssl_context=context)

 File "/usr/lib/python3/dist-packages/urllib3/util/ssl_.py", line 332, in ssl_wrap_socket

  return context.wrap_socket(sock, server_hostname=server_hostname)

 File "/usr/lib/python3.6/ssl.py", line 407, in wrap_socket

  _context=self, _session=session)

 File "/usr/lib/python3.6/ssl.py", line 817, in __init__

  self.do_handshake()

 File "/usr/lib/python3.6/ssl.py", line 1077, in do_handshake

  self._sslobj.do_handshake()

 File "/usr/lib/python3.6/ssl.py", line 689, in do_handshake

  self._sslobj.do_handshake()

urllib3.exceptions.ProtocolError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

 

During handling of the above exception, another exception occurred:

 

Traceback (most recent call last):

 File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/downloader.py", line 65, in try_download

  chunk_iterable = start_download()

 File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/downloader.py", line 244, in <lambda>

  lambda: model_file.source.start_download(session, CHUNK_SIZE)):

 File "/opt/intel/openvino_2019.3.376/deployment_tools/open_model_zoo/tools/downloader/common.py", line 172, in start_download

  response = session.get(self.url, stream=True, timeout=DOWNLOAD_TIMEOUT)

 File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 546, in get

  return self.request('GET', url, **kwargs)

 File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 533, in request

  resp = self.send(prep, **send_kwargs)

 File "/usr/local/lib/python3.6/dist-packages/requests/sessions.py", line 646, in send

  r = adapter.send(request, **kwargs)

 File "/usr/local/lib/python3.6/dist-packages/requests/adapters.py", line 498, in send

  raise ConnectionError(err, request=request)

requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer'))

########## Error: Download failed

 

################|| Post-processing ||################

 

FAILED:

squeezenet1.1

Error on or near line 159; exiting with status 1

 

 

0 Kudos
14 Replies
JohnT_Intel
Employee
281 Views

Hi,

 

May I know if you follow the guide in https://docs.openvinotoolkit.org/latest/_tools_downloader_README.html to install all the prerequisite dependencies file?

Titanameda
Beginner
281 Views

Thank you for your reply

No , I have not ,

 

so now I have installed the necessary requirements , as below

1./opt/intel/openvino/deployment_tools/open_model_zoo/tools/downloader# python3 -mpip install --user -r ./requirements.in

 

but the error persists ,i have followed this guide

https://docs.openvinotoolkit.org/latest/_docs_install_guides_installing_openvino_linux_fpga.html

 

2. Isn't there another approach to program the Mustang? apart from USB blaster , via PCIe something like opencl?

3. any guides on how to connect the to the host machine ,like power, the harware connections ?

 

 

 

JohnT_Intel
Employee
281 Views

Hi,

 

The error looks like you are not able to download the model from Github. Could you check your internet connection?

 

Currently you have not move towards running it on FPGA yet as it is more towards the package downloading and setup.

Titanameda
Beginner
281 Views

hello ,

so I am referring this document and in page 20 , a driver has to be installed , that particular driver is not present , so where can i find the driver , from intel? or any other alternative method.

https://files.icp-deutschland.de/produkte/KC001777/web/Mustang-F100-A10_UMN_v1.02-manual-20190212.pd...

 

Thank you

JohnT_Intel
Employee
281 Views

Hi,

 

For the PCIe driver then please refer to https://docs.openvinotoolkit.org/latest/_docs_install_guides_VisionAcceleratorFPGA_Configure_2019R3.... which you will need to download the fpga_support_files.tgz which contain the BSP and driver. Please follow the step provide to install the card.

Titanameda
Beginner
281 Views

Hi,

 

Question No:1:

 

  1. https://docs.openvinotoolkit.org/latest/_docs_install_guides_VisionAcceleratorFPGA_Configure_2019R1.... , following this guide, so after step 10 , I get the following errors:

 

 

 

./install_openvino_fpga_dependencies.sh

 

Getting OpenVINO Information

 

 

Would you like to setup an FPGA? Select an option below.

Select (1) for None, (2) Intel® Arria® 10 GX FPGA Development Kit, (3) for Intel® Vision Accelerator Design with Intel® Arria® 10 FPGA (IEI Mustang-F100-A10):

1) none

2) Intel® Arria® 10 GX FPGA Development Kit

3) Intel® Vision Accelerator Design with Intel® Arria® 10 FPGA (IEI Mustang-F100-A10)

#? 3

Selected:

 

The NEO OpenCL GPU driver is required for using the GPU with OpenVINO. Would you like to install it?

Please select (y/n)

y

 

Do you want to setup a Movidius Neural Compute Stick?

Please select (y/n)

y

 

Do you want to setup an Intel® Vision Accelerator Design with Intel® Movidius™ VPUs card?

Please select (y/n)

y

Install NEO OCL

Intel OpenCL graphics driver installer

Looking for previously installed user-mode driver...

Found intel-opencl installed, uninstalling...

(Reading database ... 284686 files and directories currently installed.)

Removing intel-opencl (19.32.13826) ...

Purging configuration files for intel-opencl (19.32.13826) ...

dpkg: warning: while removing intel-opencl, directory '/etc/OpenCL/vendors' not empty so not removed

Processing triggers for libc-bin (2.27-3ubuntu1) ...

Found intel-ocloc installed, uninstalling...

(Reading database ... 284681 files and directories currently installed.)

Removing intel-ocloc (19.32.13826) ...

Purging configuration files for intel-ocloc (19.32.13826) ...

dpkg: warning: while removing intel-ocloc, directory '/usr/local/bin' not empty so not removed

Processing triggers for libc-bin (2.27-3ubuntu1) ...

Found intel-gmmlib installed, uninstalling...

(Reading database ... 284679 files and directories currently installed.)

Removing intel-gmmlib (19.2.3) ...

Purging configuration files for intel-gmmlib (19.2.3) ...

Processing triggers for libc-bin (2.27-3ubuntu1) ...

Found intel-igc-core installed, uninstalling...

dpkg: dependency problems prevent removal of intel-igc-core:

 intel-igc-opencl depends on intel-igc-core (= 1.0.10-2407).

 

dpkg: error processing package intel-igc-core (--purge):

 dependency problems - not removing

Errors were encountered while processing:

 intel-igc-core

ERROR: unable to remove intel-igc-core

      please resolve it manually and try to launch the script again.

usermod: user '' does not exist

Reading package lists... Done

Building dependency tree      

Reading state information... Done

E: Unable to locate package libboost-program-options1.58.0

E: Couldn't find any package by glob 'libboost-program-options1.58.0'

E: Couldn't find any package by regex 'libboost-program-options1.58.0'

E: Unable to locate package libboost-thread1.58.0

E: Couldn't find any package by glob 'libboost-thread1.58.0'

E: Couldn't find any package by regex 'libboost-thread1.58.0'

E: Unable to locate package libboost-filesystem1.58.0

E: Couldn't find any package by glob 'libboost-filesystem1.58.0'

E: Couldn't find any package by regex 'libboost-filesystem1.58.0'

E: Unable to locate package libjson-c2

./install_openvino_fpga_dependencies.sh: line 371: /deployment_tools/inference_engine/external/hddl/generate_udev_rules.sh: No such file or directory

sed: can't read /etc/udev/rules.d/98-hddlbsl.rules: No such file or directory

[Error] Can't find path to HDDL-R drivers. Skipping HDDL-R setup. (===========ERROR================= )

Reading package lists... Done

Building dependency tree      

Reading state information... Done

libelf-dev is already the newest version (0.170-0.4ubuntu0.1).

The following packages were automatically installed and are no longer required:

 libavdevice57 libavfilter6 libavresample3 libc6-dev:i386 linux-libc-dev:i386 x11proto-dri2-dev x11proto-gl-dev

Use 'apt autoremove' to remove them.

0 upgraded, 0 newly installed, 0 to remove and 122 not upgraded.

Installed HDDL-F BSP Files: (hddlf/2019.r1/a10_1150_sg1/ to /opt/altera/aocl-pro-rte/aclrte-linux64/board)

 

[Error] You have multiple versions of Quartus installed! Please choose one to fix.

Which version of Quartus do you want to fix?

Please select (y/n)

y

 

[Info] Warning: multipe multiple Quartus instances found!

 

Size of array: 2

/home/tata/intelFPGA/18.1/qprogrammer /root/intelFPGA/18.1/qprogrammer

1) /home/tata/intelFPGA/18.1/qprogrammer

2) /root/intelFPGA/18.1/qprogrammer

#? 2

You selected: /root/intelFPGA/18.1/qprogrammer

Installing aocl flash fix to: /root/intelFPGA/18.1/qprogrammer/linux64

 

[Info] Success! OpenVINO FPGA dependencies installed.

 

 

 

Question No 2:

 

The next step involves flashing with the USB flasher ,

1.Cant we achieve this without the USB flashing ?

2.What about Opencl methodology of sending .aocx files to fpga, or any other methodologies.

 

Thank You

 

 

 

JohnT_Intel
Employee
281 Views

Question No:1:

 

  1. https://docs.openvinotoolkit.org/latest/_docs_install_guides_VisionAcceleratorFPGA_Configure_2019R1.... , following this guide, so after step 10 , I get the following errors:

 

The error that you observed is not related to FPGA. So you should be able move forward with your testing. 

 

 

Question No 2:

 

The next step involves flashing with the USB flasher ,

1.Cant we achieve this without the USB flashing ?

You only need to do it the 1st time if you are it is preloaded with the image with the same OpenVINO version.

2.What about Opencl methodology of sending .aocx files to fpga, or any other methodologies.

If you are just want to run different topology then you can use "aocl program ***.aocx" which will update the FPGA topology. If the preloaded image is using different OpenVINO version then you will need to use USB Blaster to flash it before you are able to program it.

 

 

Titanameda
Beginner
281 Views

Hi,

https://files.icp-deutschland.de/produkte/KC001777/web/Mustang-F100-A10_UMN_v1.02-manual-20190212.pd...,

pg:20 and 21

In this guide , the flashing is not done , an alternate method is provided , does this work?

JohnT_Intel
Employee
281 Views

Hi,

 

Yes. it will work if you are able to program it. If you see issue on programming it then you will need to flash the FPGA.

Titanameda
Beginner
281 Views

hi ,

Following this guide to install FPGA support files

messages observed :

aocl install

Do you want to install /opt/intelFPGA_pro/18.1/hld/board/a10_ref? [y/n] y

aocl install: Adding the board package /opt/intelFPGA_pro/18.1/hld/board/a10_ref to the list of installed pckages

aocl install: Setting up FCD

aocl install: Running install from /opt/intelFPGA_pro/18.1/hld/board/a10_ref/linux64/libexec

Looking for kernel source files in /lib/modules/4.15.0-70-generic/build

Using kernel source files from /lib/modules/4.15.0-70-generic/build

Building driver for BSP with name a10_ref

make: Entering directory '/usr/src/linux-headers-4.15.0-70-generic'

 CC [M] /tmp/opencl_driver_axJYyF/aclpci_queue.o

 CC [M] /tmp/opencl_driver_axJYyF/aclpci.o

 CC [M] /tmp/opencl_driver_axJYyF/aclpci_fileio.o

 CC [M] /tmp/opencl_driver_axJYyF/aclpci_dma.o

 CC [M] /tmp/opencl_driver_axJYyF/aclpci_pr.o

 CC [M] /tmp/opencl_driver_axJYyF/aclpci_cmd.o

 LD [M] /tmp/opencl_driver_axJYyF/aclpci_a10_ref_drv.o

 Building modules, stage 2.

 MODPOST 1 modules

 CC     /tmp/opencl_driver_axJYyF/aclpci_a10_ref_drv.mod.o

 LD [M] /tmp/opencl_driver_axJYyF/aclpci_a10_ref_drv.ko

make: Leaving directory '/usr/src/linux-headers-4.15.0-70-generic'

 

aocl diagnose

--------------------------------------------------------------------

Warning:

No devices attached for package:

/opt/intelFPGA_pro/18.1/hld/board/a10_ref

--------------------------------------------------------------------

Vendor: Intel(R) Corporation

 

Found no active device installed on the host machine.

 

Please make sure to:

     1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package.

     2. Install the driver from the selected board package.

     3. Properly install the device in the host machine.

     4. Configure the device with a supported OpenCL design.

     5. Reboot the machine if the PCI Express link failed.

 

DIAGNOSTIC_FAILED

 

 

How to resolve this

 

Titanameda
Beginner
281 Views

JohnT_Intel
Employee
281 Views

Hi,

 

Its look like you are installing the wrong BSP. You will need to run "export AOCL_BOARD_PACKAGE_ROOT=/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1" as this will be the BSP installed into your system as you are using this board.

 

If you "a10_1150_sg1" is install in the different directory then you can changed "export AOCL_BOARD_PACKAGE_ROOT=/opt/intelFPGA_pro/18.1/hld/board/a10_1150_sg1" which is the same directory of the a10_ref BSP.

Titanameda
Beginner
281 Views

Hi

a10_1150 is installed , as per the commands that are installed , so while diagnosis it is searching for a10_ref so file , where to edit the environmental variables

 

echo $AOCL_BOARD_PACKAGE_ROOT/

/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1/

root@tata:~# aocl install

Do you want to install /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1? [y/n] y

aocl install: Adding the board package /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1 to the list of installed pckages

aocl install: Setting up FCD

aocl install: Running install from /opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1/linux64/libexec

Looking for kernel source files in /lib/modules/4.15.0-70-generic/build

Using kernel source files from /lib/modules/4.15.0-70-generic/build

Building driver for BSP with name a10_1150_sg1

make: Entering directory '/usr/src/linux-headers-4.15.0-70-generic'

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci_queue.o

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci.o

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci_fileio.o

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci_dma.o

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci_pr.o

 CC [M] /tmp/opencl_driver_zVe9aV/aclpci_cmd.o

 LD [M] /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.o

 Building modules, stage 2.

 MODPOST 1 modules

 CC     /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.mod.o

 LD [M] /tmp/opencl_driver_zVe9aV/aclpci_a10_1150_sg1_drv.ko

make: Leaving directory '/usr/src/linux-headers-4.15.0-70-generic'

root@tata:~# aocl diagnose

/opt/intelFPGA_pro/18.1/hld/board/a10_ref/linux64/libexec/diagnose: error while loading shared libraries: libaltera_a10_ref_mmd.so: cannot open shared object file: No such file or directory

--------------------------------------------------------------------

Warning:

No devices attached for package:

/opt/intelFPGA_pro/18.1/hld/board/a10_ref

--------------------------------------------------------------------

/opt/intelFPGA_pro/18.1/hld/board/a10_ref/linux64/libexec/diagnose: error while loading shared libraries: libaltera_a10_ref_mmd.so: cannot open shared object file: No such file or directory

--------------------------------------------------------------------

--------------------------------------------------------------------

Warning:

No devices attached for package:

/opt/altera/aocl-pro-rte/aclrte-linux64/board/a10_1150_sg1

--------------------------------------------------------------------

Vendor: Intel(R) Corporation

 

Found no active device installed on the host machine.

 

Please make sure to:

     1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package.

     2. Install the driver from the selected board package.

     3. Properly install the device in the host machine.

     4. Configure the device with a supported OpenCL design.

     5. Reboot the machine if the PCI Express link failed.

 

DIAGNOSTIC_FAILED

--------------------------------------------------------------------

--------------------------------------------------------------------

Warning:

No devices attached for package:

/home/tata/Sharath/hddlf_1150_sg1

--------------------------------------------------------------------

--------------------------------------------------------------------

 

Call "aocl diagnose <device-names>" to run diagnose for specified devices

Call "aocl diagnose all" to run diagnose for all devices

 

 

 

 

CURRENT VARIABLES IN BASHRC

 

 

####intel openvino###

export INTELFPGAOCLSDKROOT="/opt/intelFPGA_pro/18.1/hld"

 

export QSYS_ROOTDIR="/home/tata/intelFPGA_pro/18.1/qsys/bin"

export PATH=/home/tata/intelFPGA_pro/18.1/quartus/bin:$PATH

source /opt/intel/openvino/bin/setupvars.sh

export PATH=/opt/intelFPGA_pro/18.1/quartus/bin:$PATH

#opencl via openvino

 

export PATH=/opt/intelFPGA_pro/18.1/hld/bin:$PATH

source $INTELFPGAOCLSDKROOT/init_opencl.sh

 

 

JohnT_Intel
Employee
281 Views

Hi,

 

Could you performed "AOCL UNINSTALL" in order to uninstall the BSP that is not used? Are you able to detect the board when you use "lspci" command?

Reply