Is this errata for the book or an issue with the source code? Source code
If errata, please describe the problem in the book (with page number). If
this is an issue with the source code, please specify the problem,
platform, OpenCL implementation, and any additional information that will
help us reproduce the problem:
Platform is AMD using Visual Studio 2012 and App SDK version 2.7.
Chapter 12, sinewave example does not compile using the OpenCL 1.2 version of
cl.hpp. The lines in question are:
cl::KernelFunctor func = kernel.bind(
queue,
cl::NDRange(meshWidth, meshHeight),
cl::NDRange(local_work_size[0], local_work_size[1]));
KernelFunctor and the bind method are removed in the latest version of cl.hpp
found on the Khronos website and in the latest version of AMD's APP SDK. Both
of these appear in a previous 1.1 version of cl.hpp on the Khronos website. The
explanation for removal is that KernelFunctor and bind are not part of the
OpenCL spec and have problems.
Please provide any additional information below.
Original issue reported on code.google.com by jgallme...@gmail.com on 16 Nov 2012 at 10:29
Original issue reported on code.google.com by
jgallme...@gmail.com
on 16 Nov 2012 at 10:29