Intel® High Level Design
Support for Intel® High Level Synthesis Compiler, DSP Builder, OneAPI for Intel® FPGAs, Intel® FPGA SDK for OpenCL™

OpenCL host failed

msaideroglu
Beginner
1,698 Views

Hi,

 

I'm using Arria10 DevKit to run OpenCL on it with OpenCL SDK. I followed the guide carefully however aocl flash acl0 boardtest.aocx gives

Device not part of know packages.
--------------------------------------------------------------------
ICD System Diagnostics
--------------------------------------------------------------------

Using the following location for ICD installation:
/etc/OpenCL/vendors

Found 1 icd entry at that location:
/etc/OpenCL/vendors/intel.icd

the following OpenCL libraries are referenced in the icd files:
/usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so

checking LD_LIBRARY_PATH for registered libraries:
/usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so was registered on the system.

Using the following location for fcd installations:
/opt/Intel/OpenCL/Boards

Found 1 fcd entry at that location:
/opt/Intel/OpenCL/Boards/a10_ref.fcd

the following OpenCL libraries are referenced in the fcd files:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so

checking LD_LIBRARY_PATH for registered libraries:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so was registered on the system.
ERROR: Query for number of platforms failed -1001

ERROR: OpenCL host failed
--------------------------------------------------------------------
ICD diagnostics FAILED
--------------------------------------------------------------------
--------------------------------------------------------------------
BSP Diagnostics
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref
--------------------------------------------------------------------

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

 

Also aocl diagnose gives

--------------------------------------------------------------------
ICD System Diagnostics
--------------------------------------------------------------------

Using the following location for ICD installation:
/etc/OpenCL/vendors

Found 1 icd entry at that location:
/etc/OpenCL/vendors/intel.icd

the following OpenCL libraries are referenced in the icd files:
/usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so

checking LD_LIBRARY_PATH for registered libraries:
/usr/lib/x86_64-linux-gnu/intel-opencl/libigdrcl.so was registered on the system.

Using the following location for fcd installations:
/opt/Intel/OpenCL/Boards

Found 1 fcd entry at that location:
/opt/Intel/OpenCL/Boards/a10_ref.fcd

the following OpenCL libraries are referenced in the fcd files:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so

checking LD_LIBRARY_PATH for registered libraries:
/home/msaid/intelFPGA_pro/19.2/hld/board/a10_ref/linux64/lib/libaltera_a10_ref_mmd.so was registered on the system.
ERROR: Query for number of platforms failed -1001

ERROR: OpenCL host failed
--------------------------------------------------------------------
ICD diagnostics FAILED
--------------------------------------------------------------------
--------------------------------------------------------------------
BSP Diagnostics
--------------------------------------------------------------------
--------------------------------------------------------------------
Warning:
No devices attached for package:
/home/msaid/intelFPGA_pro/19.2/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
--------------------------------------------------------------------

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

 

Labels (1)
0 Kudos
7 Replies
whitepau_altera
Employee
1,619 Views

Hello, thanks for the question!

FYI Intel® FPGA SDK for OpenCL™ is end-of-life as of 2022. https://www.intel.com/content/www/us/en/docs/programmable/683188/22-4/eol.html 

That being said, there are some common things you can try.

 

First: Which operating system are you using? According to the Quartus® Prime 19.2 release notes, you should be using RHEL 6.9,  RHEL 7.5, Ubuntu 14.04.5 LTS or Ubuntu 16.04.2 LTS:


System Requirements
===================
Operating system support
------------------------
*  Windows 7 SP1(64 bit)
*  Windows 8.1 (64 bit)
*  Windows 10 (64 bit)
*  Windows Server 2008 R2 SP1 (64 bit)
*  Windows Server 2012 R2 (64 bit)
*  Red Hat Enterprise Linux 6.9 (64 bit)
*  Red Hat Enterprise Linux 7.5 (64 bit)
*  SUSE LES 12.1 (SP1)
*  Ubuntu 14.04.5 LTS (64 bit)
*  Ubuntu 16.04.2 LTS (64 bit)

Notes:
   * The Intel(R) Quartus(R) Prime Software (Pro, Standard, & Lite),
   Stand-Alone Programmer (Pro & Standard), and DSP Builder (Pro & Standard)
   are supported under all listed operating systems.
  * Red Hat Enterprise Linux 7 only supports KDE Desktop 

Second: Did you try all the suggested steps that aocl-diagnose recommended?

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
--------------------------------------------------------------------

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



Thanks!

0 Kudos
msaideroglu
Beginner
1,576 Views

Hi.

I'm using Ubuntu 22.04. I'm aware that my OS doesn't supported according to release notes. However Quartus 19.2 includes a10_ref and s10_ref BSP's in hld/board directory. Newer versions doesn't come with a reference BSP inside their hld/board directory. I found a code update from some of users in Intel Community for newer kernels with newer OS versions. So, I did that code changes and my gcc compiled it without error. 

About suggested steps:

1. Set the environment variable AOCL_BOARD_PACKAGE_ROOT to the correct board package. (Sure.)
2. Install the driver from the selected board package.(Jtag programmer does this and doesnt give any error.)
3. Properly install the device in the host machine.(gcc compiles driver during installation without error.)

 

So for newer versions of Quartus Prime, can I find a reference BSP for Arria10 and Stratix10 FPGAs?

Thanks. 

0 Kudos
whitepau_altera
Employee
1,556 Views

You are correct, we stopped supporting those cards with new OpenCL BSPs several years ago.

 

1. Have you tried using one of the supported operating systems? If you don't want to pay for RHEL, you may also use the free equivalent, CentOS. This is most likely to work as it is the OS we developed those tools with internally.

2. Do you have a link to this code update that you used?

0 Kudos
msaideroglu
Beginner
1,550 Views
0 Kudos
whitepau_altera
Employee
1,546 Views

Thank you for sharing the link. 

 

Please let us know how CentOS works out for you.

 

BTW CentOS 6.9 is recommended.

0 Kudos
msaideroglu
Beginner
1,446 Views
0 Kudos
BoonBengT_Altera
Moderator
1,332 Views

Hi @msaideroglu,


Good to know your doubts has been clarify, with no further clarification on this thread, it will be transitioned to community support for further help on doubts in this thread. Please login to ‘https://supporttickets.intel.com’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support.

Thank you for the questions and as always pleasure having you here.


Best Wishes

BB


0 Kudos
Reply