You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ 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
The text was updated successfully, but these errors were encountered:
$ 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
The text was updated successfully, but these errors were encountered: