Public bug reported:

Compared to Trusty, Xenial comes with OpenCL 2.0 support and ships 
/usr/include/CL/cl2.hpp instead of /usr/include/CL/cl.hpp, because they are 
incompatible as described here:
http://github.khronos.org/OpenCL-CLHPP/index.html#compatibility

In order to build old code, the Khronos documentation suggest to set some 
defines:
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_ENABLE_SIZE_T_COMPATIBILITY
#define CL_HPP_ENABLE_PROGRAM_CONSTRUCTION_FROM_ARRAY_COMPATIBILITY

which solve some issues with cl::size_t vs std::size_t. However, some
issues remain due to usage of size_t without namespace prefix.

However updating cl2.hpp to the latest version 
(https://github.com/KhronosGroup/OpenCL-CLHPP)
resolved the issue for me. Could you please consider to update cl2.hpp in the 
package?

Description:    Ubuntu 16.04.1 LTS
Release:        16.04
package version: opencl-headers 2.0~svn32091-2

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: opencl-headers 2.0~svn32091-2 [modified: usr/include/CL/cl2.hpp]
ProcVersionSignature: Ubuntu 4.4.0-36.55-generic 4.4.16
Uname: Linux 4.4.0-36-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.1
Architecture: amd64
CurrentDesktop: XFCE
Date: Fri Sep  2 16:56:13 2016
Dependencies:
 
InstallationDate: Installed on 2016-04-21 (134 days ago)
InstallationMedia: Xubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
PackageArchitecture: all
SourcePackage: khronos-opencl-headers
UpgradeStatus: No upgrade log present (probably fresh install)

** Affects: khronos-opencl-headers (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: amd64 apport-bug xenial

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1619706

Title:
  outdated opencl header cl2.hpp

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/khronos-opencl-headers/+bug/1619706/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to