We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generated kernel.cpp code from vitis simulation has a missing argument to the buffer functions that looks like the following:
kernel.cpp
host.cpp: In function ‘int main(int, char**)’: host.cpp:107:99: error: expected primary-expression before ‘.’ token cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1080*1920*3, .data(), &err); ^ host.cpp:108:22: error: redeclaration of ‘cl::Buffer buffer_’ cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*3*3, .data(), &err); ^~~~~~~ host.cpp:107:14: note: ‘cl::Buffer buffer_’ previously declared here cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1080*1920*3, .data(), &err); ^~~~~~~ host.cpp:108:91: error: expected primary-expression before ‘.’ token cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*3*3, .data(), &err); ^ host.cpp:109:22: error: redeclaration of ‘cl::Buffer buffer_’ cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*3*3, .data(), &err); ^~~~~~~ host.cpp:107:14: note: ‘cl::Buffer buffer_’ previously declared here cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1080*1920*3, .data(), &err); ^~~~~~~ host.cpp:109:91: error: expected primary-expression before ‘.’ token cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*3*3, .data(), &err); ^ host.cpp:110:22: error: redeclaration of ‘cl::Buffer buffer_’ cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1078*1918, .data(), &err); ^~~~~~~ host.cpp:107:14: note: ‘cl::Buffer buffer_’ previously declared here cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1080*1920*3, .data(), &err); ^~~~~~~ host.cpp:110:97: error: expected primary-expression before ‘.’ token cl::Buffer buffer_(context, CL_MEM_USE_HOST_PTR | CL_MEM_READ_WRITE, sizeof(float)*1078*1918, .data(), &err);
The error can be reproduced by running the pipelined version of Sobel example addressed in PR #384 .
The text was updated successfully, but these errors were encountered:
It turns out to be a one line change of code for the fix. Will push the fix in a separate PR.
Sorry, something went wrong.
hecmay
Successfully merging a pull request may close this issue.
Issue Description
Generated
kernel.cpp
code from vitis simulation has a missing argument to the buffer functions that looks like the following:The error can be reproduced by running the pipelined version of Sobel example addressed in PR #384 .
The text was updated successfully, but these errors were encountered: