问题
The question is specific enough I suppose. Just to make it clear:
- I am not looking for a reference, but a tutorial.
- I am interested specifically in the kernel programming aspect.
回答1:
There aren't that many books out there so you can't be very picky. There are two that are more like guides and less like a reference:
- OpenCL in Action
- Heterogeneous Computing with OpenCL
They both cover more than just kernel programming, like the basics of parallel computing and how graphic cards work, etc. but they do contain lots of example OpenCL kernel code.
回答2:
I'd throw in OpenCl Programming Guide. Approximately one-third of the book is a compilation of nine end-to-end OpenCL 1.1 case studies of various complexity, each including fine grain details like kernel listings.
Although some people have pointed at multiple shortcomings of this text, I personally see a value in going thru some case studies in the book for grasping of this awesome technology.
来源:https://stackoverflow.com/questions/9550486/tutorials-or-books-on-kernel-programming-for-opencl