Forum Discussion
okramer
Occasional Contributor
6 years agoOpenCL host code getting compile error: ‘clCreatePipe’ was not declared in this scope
I'm including CL/cl.hpp. However, I see that 'clCreatePipe' is defined in CL/cl.h. In the comments section of cl.hpp, it explicitely says, * The interface is contained with a single C++ header file...
- 6 years ago
It looks like I have to do
#define CL_TARGET_OPENCL_VERSION 200
#include <CL/opencl.h>
in my host code, per Appendix 3 in the OpenCL programmers guide. It now compiles.
okramer
Occasional Contributor
6 years agoIt looks like I have to do
#define CL_TARGET_OPENCL_VERSION 200
#include <CL/opencl.h>
in my host code, per Appendix 3 in the OpenCL programmers guide. It now compiles.