Summary

In this chapter we discussed about OpenCL cl_mem objects. There are two types of OpenCL buffers. In the next chapter we will study about the OpenCL Image buffers, and discuss similar characteristics which we have discussed in this chapter.

We also discussed an example of histogram computation of an image data with OpenCL buffers as an object. In the next chapter we will discuss the same sample example but with OpenCL Image Objects. Besides there were two more examples given in this chapter, one for copy rectangular regions and the other for rectangular reads from a buffer. Try the samples out and modify the kernel code at your will.

Get OpenCL Programming by Example now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.