Can anyone suggest good book/tutorial which contains code examples for OpenCL programming on APU? The prgramming manual/user guide from AMD mention about this but the code examples are not sufficient one for me.
Generally speaking, the whole point of OpenCL is that it’s cross-platform. Code that works for AMD’s CPUs should work just as well for Intel’s CPUs, ARM CPUs, or whatever else comes up.
So long as your OpenCL implementation supports the version of OpenCL you’re using, and you’re not exceeding its implementation-defined limits, code for one platform should work on another. There may need to be some adjustments to be made for platform-specific performance issues (wavefront size adjustments, etc), but basic functionality ought to be there.
Barring implementation bugs, of course.