Skip to content
New issue

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

This version of the OpenCL Host API C++ bindings is deprecated, please use cl2.hpp instead #1

Open
DennisFaucher opened this issue Dec 5, 2024 · 0 comments

Comments

@DennisFaucher
Copy link

$ gcc -Wall -Wextra -D CL_TARGET_OPENCL_VERSION=100 hello_world.cpp -o helloworld -lOpenCL
In file included from hello_world.cpp:1:
/usr/include/CL/cl.hpp:155:110: note: #pragma message: This version of the OpenCL Host API C++ bindings is deprecated, please use cl2.hpp instead.
155 | #pragma message("This version of the OpenCL Host API C++ bindings is deprecated, please use cl2.hpp instead.")
| ^
hello_world.cpp: In function ‘int main()’:
hello_world.cpp:76:52: error: ‘CL_MEM_HOST_READ_ONLY’ was not declared in this scope; did you mean ‘CL_MEM_READ_ONLY’?
76 | cl::Buffer memBuf(context, CL_MEM_WRITE_ONLY | CL_MEM_HOST_READ_ONLY, sizeof(buf));
| ^~~~~~~~~~~~~~~~~~~~~
| CL_MEM_READ_ONLY

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant