** Summary changed: - cl.hpp always wraps functions from cl.h which are only declared with feature macros + cl.hpp always wraps functions from cl.h which are only declared with CL_USE_DEPRECATED_OPENCL_1_1_APIS
** Description changed: CL/cl.hpp declares wrappers around functions from CL/cl.h. Some of those - functions are only declared when some feature macros are #defined. + functions are only declared when CL_USE_DEPRECATED_OPENCL_1_1_APIS is + #defined. For example, CL/cl.hpp: 1603: static inline cl_int UnloadCompiler() { return ::clUnloadCompiler(); } - but CL/cl.h:1192 declared ::clUnloadCompiler only when - CL_USE_DEPRECATED_OPENCL_1_1_APIS is #defined: + but CL/cl.h:1192 declareds ::clUnloadCompiler: #ifdef CL_USE_DEPRECATED_OPENCL_1_1_APIS /* ... */ extern CL_API_ENTRY cl_int CL_API_CALL clUnloadCompiler(void) CL_EXT_SUFFIX__VERSION_1_1_DEPRECATED; /* ... */ #endif This is the result of compiling the CL/cl.hpp header directly: $ g++ -x c++ /usr/include/CL/cl.hpp /usr/include/CL/cl.hpp: In function ‘cl_int cl::UnloadCompiler()’: /usr/include/CL/cl.hpp:1606:12: error: ‘::clUnloadCompiler’ has not been declared /usr/include/CL/cl.hpp: In constructor ‘cl::Image2D::Image2D(const cl::Context&, cl_mem_flags, cl::ImageFormat, size_t, size_t, size_t, void*, cl_int*)’: /usr/include/CL/cl.hpp:2365:19: error: ‘::clCreateImage2D’ has not been declared /usr/include/CL/cl.hpp: In constructor ‘cl::Image2DGL::Image2DGL(const cl::Context&, cl_mem_flags, GLenum, GLint, GLuint, cl_int*)’: /usr/include/CL/cl.hpp:2410:19: error: ‘::clCreateFromGLTexture2D’ has not been declared /usr/include/CL/cl.hpp: In constructor ‘cl::Image3D::Image3D(const cl::Context&, cl_mem_flags, cl::ImageFormat, size_t, size_t, size_t, size_t, size_t, void*, cl_int*)’: /usr/include/CL/cl.hpp:2464:19: error: ‘::clCreateImage3D’ has not been declared /usr/include/CL/cl.hpp: In constructor ‘cl::Image3DGL::Image3DGL(const cl::Context&, cl_mem_flags, GLenum, GLint, GLuint, cl_int*)’: /usr/include/CL/cl.hpp:2510:19: error: ‘::clCreateFromGLTexture3D’ has not been declared /usr/include/CL/cl.hpp: In member function ‘cl_int cl::CommandQueue::enqueueMarker(cl::Event*) const’: /usr/include/CL/cl.hpp:3745:13: error: ‘::clEnqueueMarker’ has not been declared /usr/include/CL/cl.hpp: In member function ‘cl_int cl::CommandQueue::enqueueWaitForEvents(const std::vector<cl::Event>&) const’: /usr/include/CL/cl.hpp:3752:13: error: ‘::clEnqueueWaitForEvents’ has not been declared /usr/include/CL/cl.hpp: In member function ‘cl_int cl::CommandQueue::enqueueBarrier() const’: /usr/include/CL/cl.hpp:3867:13: error: ‘::clEnqueueBarrier’ has not been declared ProblemType: Bug DistroRelease: Ubuntu 12.10 Package: opencl-headers 1.2-2012.04.18a-1 ProcVersionSignature: Ubuntu 3.5.0-17.28-generic 3.5.5 Uname: Linux 3.5.0-17-generic x86_64 NonfreeKernelModules: fglrx ApportVersion: 2.6.1-0ubuntu3 Architecture: amd64 Date: Thu Oct 25 11:48:22 2012 Dependencies: PackageArchitecture: all SourcePackage: khronos-opencl-headers UpgradeStatus: Upgraded to quantal on 2012-03-12 (226 days ago) -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1071239 Title: cl.hpp always wraps functions from cl.h which are only declared with CL_USE_DEPRECATED_OPENCL_1_1_APIS To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/khronos-opencl-headers/+bug/1071239/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs