Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Section A.4. OpenCL on Mac OS

A.4. OpenCL on Mac OS

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial