OpenCL "Hello World"
developer.apple.com
developer.apple.com
Deleted comment
This chapter guides you through the creation of a simple OpenCL application that performs calculations on a data set.
But my second thought was "Oh my GOD, how many pages of text for a single loop to run?". I'm sure they'll improve the api (with a wrapper layer), but right now OpenCL will only be used by the more demanding of applications.
EDIT: Maybe that sounded wrong. For huge classes of problems this isn't an issue, but to really pull that power down to the everyday developer, an easier wrapper api will be needed.
I can see spreadsheets using this stuff, but not as it stands now. On the other hand a gpgpu raytracer could use opencl as it stands now.
What's the deal with const char *KernelSource = HUGE_MULTILINE_STRING_WITH_EXPLICIT_\n ???
Its worse than SQL statements embedded inside GUI event handlers.
int main(void) { printf("Hello, world!\n"); return 0; }
echo Hello, world!;-)