Article ID: 000073882 Content Type: Error Messages Last Reviewed: 07/22/2019

ERROR: CL_INVALID_KERNEL_NAME

Environment

  • Intel® Arria® 10 GX FPGA
  • Intel® Quartus® Prime Pro Edition
  • Intel® FPGA SDK for OpenCL™
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    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)

     

    Resolution

    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.

     

     

     

     

    Disclaimer

    1

    All postings and use of the content on this site are subject to Intel.com Terms of Use.