Article ID: 000086452 Content Type: Error Messages Last Reviewed: 10/16/2017

Error: ‘CL_MEM_BANK_1_INTEL’ was not declared in this scope

Environment

  • Intel® Quartus® Prime Pro Edition
  • BUILT IN - ARTICLE INTRO SECOND COMPONENT
    Description

    Intel FPGA SDK for OpenCL Programming Guide (2017.05.08 version) suggests "Specify CL_MEM_BANK_1_INTEL to allocate the buffer to the lowest available memory region."

    When you install Intel FPGA SDK for OpenCL 17.0 version and add “CL_MEM_BANK_1_INTEL” flag in clCreateBuffer API, you might get following error during compiling the host code.

    host/src/main.cpp: In function ‘bool init_opencl()’:
    host/src/main.cpp:176: error: ‘CL_MEM_BANK_1_INTEL’ was not declared in this scope
    make: *** [bin/vector_add] Error 1

    Resolution

    “CL_MEM_BANK_1_INTEL” is a mistake in the document. Please use “CL_MEM_BANK_*_ALTERA” in Intel FPGA SDK for OpenCL 17.0.

    Related Products

    This article applies to 1 products

    Intel® Programmable Devices