Application Acceleration With FPGAs
Programmable Acceleration Cards (PACs), DCP, DLA, Software Stack, and Reference Designs
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
406 Discussions

How to resolve "Specified kernel was not built for any devices"

KKol01
Beginner
320 Views

Hello everyone,

 

I am new in using intel products for high level design.

I have build a docker image with FPGA support according to these instructions https://docs.openvinotoolkit.org/2020.2/_docs_install_guides_installing_openvino_docker_linux.html and deployed it in a host machine connected with Bittware 520N FPGA board.

I can compile and run application in emulation mode.

However when I run for the actual error I get the following error:

 

Using AOCX: hello_world.aocx

Context callback: Specified kernel was not built for any devices

ERROR: CL_INVALID_KERNEL_NAME

Location: host/src/main.cpp:179

Failed to create kernel

 

I am not sure if it is related, by running aocl diagnose fails for ICD diagnostics.

 

ICD System Diagnostics                                             

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

 

Using the following location for ICD installation:

   /etc/OpenCL/vendors

 

Found 4 icd entry at that location:

   /etc/OpenCL/vendors/intel-cpu.icd

   /etc/OpenCL/vendors/intel-neo.icd

   /etc/OpenCL/vendors/Altera.icd

   /etc/OpenCL/vendors/Intel_FPGA_SSG_Emulator.icd

 

the following OpenCL libraries are referenced in the icd files:

   libintelocl.so

   libigdrcl.so

   libalteracl.so

   libintelocl_emu.so

 

checking LD_LIBRARY_PATH for registered libraries:

   WARNING: libintelocl.so NOT FOUND

   WARNING: libigdrcl.so NOT FOUND

   libalteracl.so was registered on the system at /opt/altera/aocl-pro-rte/aclrte-linux64/host/linux64/lib

   libintelocl_emu.so was registered on the system at /opt/intel/intelFPGA_pro/18.1/hld/linux64/lib

 

Using the following location for fcd installations:

   /opt/Intel/OpenCL/Boards

 

Found 1 fcd entry at that location:

   /opt/Intel/OpenCL/Boards/nalla_pcie.fcd

 

the following OpenCL libraries are referenced in the fcd files:

   /opt/intel/intelFPGA_pro/18.1/hld/board/nalla_pcie/linux64/lib/libnalla_pcie_mmd.so

 

checking LD_LIBRARY_PATH for registered libraries:

   /opt/intel/intelFPGA_pro/18.1/hld/board/nalla_pcie/linux64/lib/libnalla_pcie_mmd.so was registered on the system.

 

ERROR: OpenCL host failed

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

ICD diagnostics FAILED              

 

How do I solve this issue?

0 Kudos
2 Replies
HRZ
Valued Contributor II
240 Views

OpenVINO come with pre-compiled FPGA bitstreams and only supports two of Intel's own Arria 10 boards as mentioned in the link below. You cannot use it on any other boards, including your Bittware board.

 

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

 

If you just want to use OpenCL, then you do not need to use the OpenVINO docker image since it is specifically made to target the supported boards mentioned above. You just need to get the OpenCL BSP for your board from Bitware's portal and set up your environment as described here:

 

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl_getting_...

 

You can then compile and run OpenCL kernels for your board.

AnilErinch_A_Intel
240 Views

Hi

Adding on to the discussions above,

Please refer the link below for OpenCL bsp in  Bitware board

https://www.bittware.com/fpga/opencl/#board-support-packages

Also if you are planning to do OpenCL development please refer to the best practices guide also

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/opencl-sdk/aocl-best-pra...

Thanks and Regards

Anil

Reply