outdated opencl header cl2.hpp

Bug #1619706 reported by Robert Haschke
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Fix Released
Critical
Unassigned
khronos-opencl-headers (Debian)
Fix Released
Unknown
khronos-opencl-headers (Ubuntu)
Fix Released
Wishlist
Unassigned

Bug Description

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)

Revision history for this message
Robert Haschke (rhaschke) wrote :
Revision history for this message
Ghislain Vaillant (ghisvail) wrote :

I have started a discussion with the Debian OpenCL maintainers [1] and mentioned your issue.

[1] http://lists.alioth.debian.org/pipermail/pkg-opencl-devel/Week-of-Mon-20160905/001153.html

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in khronos-opencl-headers (Ubuntu):
status: New → Confirmed
Changed in khronos-opencl-headers (Debian):
status: Unknown → New
Changed in khronos-opencl-headers (Ubuntu):
importance: Undecided → Critical
Changed in hundredpapercuts:
status: New → Confirmed
importance: Undecided → Critical
Revision history for this message
Timo Aaltonen (tjaalton) wrote :

should be fixed in zesty/artful

Changed in khronos-opencl-headers (Ubuntu):
importance: Critical → Wishlist
status: Confirmed → Fix Released
Changed in hundredpapercuts:
status: Confirmed → Fix Released
Changed in khronos-opencl-headers (Debian):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.