Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
If you’re running Mac OS X 10.6 or later, you’re in luck. You already have OpenCL installed, and you can find the framework files at /System/Library/Frameworks/OpenCL.framework. In particular, the OpenCL library can be found in the framework’s Libraries/OpenCL folder. But there’s no need to access it directly. As long as you include the -framework OpenCL option in your compilation step, the compiler will know where to find it.
The example code in this book is divided into projects, and each project contains a makefile that checks the operating system and sets the build parameters accordingly. The build process is simple: change to a directory containing a makefile and run make.