Knowledge Base Article

Error: ‘CL_MEM_BANK_1_INTEL’ was not declared in this scope

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.

Updated 2 months ago
Version 2.0
No CommentsBe the first to comment