I'm super new to opencl and an early intermediate at C++.
I'm trying to get just a simple opencl program to work so I can build from there.
I installed XCode 4 and cmake to my Mac (Os X), but my opencl code is still getting errors when I try to build it.
I tried the Hello World code from the book OpenCL Programming Guide By: Aaftab Munshi; Benedict R. Gaster; Timothy G. Mattson; James Fung; Dan Ginsburg
I get errors on all the opencl program terms like:
hello.cpp:16: error: ‘cl_context’ was not declared in this scope
hello.cpp:17: error: ‘cl_command_queue’ was not declared in this scope
hello.cpp:18: error: ‘cl_program’ was not declared in this scope
hello.cpp:19: error: ‘cl_device_id’ was not declared in this scope
Do I need to put an #include<opencl> or something like that?
Anyone know what I may have missed?
Can you give me a really simple code to start with?