cl.hpp always wraps functions from cl.h which are only declared with CL_USE_DEPRECATED_OPENCL_1_1_APIS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
khronos-opencl-headers (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
CL/cl.hpp declares wrappers around functions from CL/cl.h. Some of those functions are only declared when CL_USE_
For example, CL/cl.hpp: 1603:
static inline cl_int
UnloadCompi
{
return ::clUnloadCompi
}
but CL/cl.h:1192 declareds ::clUnloadCompiler:
#ifdef CL_USE_
/* ... */
extern CL_API_ENTRY cl_int CL_API_CALL
/* ... */
#endif
This is the result of compiling the CL/cl.hpp header directly:
$ g++ -x c++ /usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
/usr/include/
ProblemType: Bug
DistroRelease: Ubuntu 12.10
Package: opencl-headers 1.2-2012.04.18a-1
ProcVersionSign
Uname: Linux 3.5.0-17-generic x86_64
NonfreeKernelMo
ApportVersion: 2.6.1-0ubuntu3
Architecture: amd64
Date: Thu Oct 25 11:48:22 2012
Dependencies:
PackageArchitec
SourcePackage: khronos-
UpgradeStatus: Upgraded to quantal on 2012-03-12 (226 days ago)
summary: |
cl.hpp always wraps functions from cl.h which are only declared with - feature macros + CL_USE_DEPRECATED_OPENCL_1_1_APIS |
description: | updated |
Status changed to 'Confirmed' because the bug affects multiple users.