Device Family: Intel® Arria® 10 GX

Intel Software: Intel FPGA SDK for OpenCL, Quartus Prime Pro

Type: Answers

Area: Embedded, OpenCL


Last Modified: July 22, 2019
Version Found: v17.1
Bug ID: 1507281184

ERROR: CL_INVALID_KERNEL_NAME

Description

If you run vector_add opencl example design on Intel® Programmable Acceleration Card with Intel® Arria®10 GX FPGA . An error may occur as follows:

  [root@localhost vector_add]# ./bin/host
  Initializing OpenCL
  Platform: Intel(R) FPGA SDK for OpenCL(TM)
  Using 1 device(s)
  pac_a10 : PAC Arria 10 Platform (pac_a10_f100000)
  Using AOCX: vector_add.aocx
  Context callback: Specified kernel was not built for any devices
  ERROR: CL_INVALID_KERNEL_NAME
  Location: host/src/main.cpp:169
  Failed to create kernel
  Segmentation fault (core dumped)

 

Workaround/Fix

You should check if your initialization script file (for example the init_env.sh file) has the following enironment variables set:

CL_CONTEXT_COMPILER_MODE_ALTERA=3

CL_CONTEXT_COMPILER_MODE_INTELFPGA=3

To work around this problem, you should unset the environment variables, and try running the host again.