Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenCL 1.2 compile error in sinewave example #75

Open
GoogleCodeExporter opened this issue Jan 12, 2016 · 0 comments
Open

OpenCL 1.2 compile error in sinewave example #75

GoogleCodeExporter opened this issue Jan 12, 2016 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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 [email protected] on 16 Nov 2012 at 10:29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant