Source: ocl-icd-opencl-dev
Version: 2.2.3-1+deb8u1
Severity: normal

Dear Maintainer,

the actual CL/cl.h header contains wrong defines CL_EXT_PREFIX__VERSION_2_0_DEPRECATED for some function signatures. An example is clCreateCommandQueue. Newer versions of this package (i looked into 2.2.9) and the headers from khronos.org changed these function defines to CL_EXT_PREFIX__VERSION_1_2_DEPRECATED.

Wrong:
/* Deprecated OpenCL 2.0 APIs */
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_2_0_DEPRECATED cl_command_queue CL_API_CALL
clCreateCommandQueue(cl_context                     /* context */,
                     cl_device_id                   /* device */,
                     cl_command_queue_properties    /* properties */,
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_2_0_DEPRECATED;


Correct:
/* Deprecated OpenCL 2.0 APIs */
extern CL_API_ENTRY CL_EXT_PREFIX__VERSION_1_2_DEPRECATED cl_command_queue CL_API_CALL
clCreateCommandQueue(cl_context                     /* context */,
                     cl_device_id                   /* device */,
                     cl_command_queue_properties    /* properties */,
cl_int * /* errcode_ret */) CL_EXT_SUFFIX__VERSION_1_2_DEPRECATED;


It would be nice if you could update debian stable with a newer version, because otherwise compiling opencl sources with the correct define CL_EXT_PREFIX__VERSION_1_2_DEPRECATED fails. Otherwise the workaround is in using the wrong define CL_EXT_PREFIX__VERSION_2_0_DEPRECATED.

-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-83-generic (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Reply via email to