OpenCL Development Environment Setup

Windows 7, 8, and 8.1

To install on your system:
  1. Determine your processor type (Intel Core/Xeon or AMD) and system type (64-bit or 32-bit): if you don’t already know, go to the Windows Control Panel, select “View by: Large Icons” or “View by: Small Icons”, then click on “System”. The “Processor” line will display the CPU type, and the “System Type” line will tell you whether you have a 64-bit or 32-bit system.
  2. Download the appropriate 64-bit or 32-bit AMD-APP-SDK-v2.9-1 installer from (do this regardless of whether you have an Intel or AMD processor).
  3. Run the downloaded installer. When you reach the “Setup Type” screen, select “Custom” and click “Next”. On the “Custom Setup” screen, you may, if you wish, deselect all optional features except OpenCL Samples -> Sample Source Code (see below). This saves several hundred MB of disk space.
    If you have an Intel CPU, install the latest version of “OpenCL™ Runtime xx.x for Intel® Core™ and Intel® Xeon® Processors for Windows* OS (64-bit & 32-bit)” from . If your computer has an Intel HD or Iris GPU, you may also optionally install the drivers for that device.
You’ll find the OpenCL code sample files referred to below in subdirectory “AMD APP SDK\2.9\samples\opencl” under the directory where you installed the SDK.
A Visual Studio 2012 solution file (OpenCLSamplesVS12.sln) is available in the samples\opencl directory to build and run the samples (this solution file will work with Visual Studio 2013 also). Some of the samples also use OpenGL and may not build without AMD OpenGL support installed.
To build and run one of the samples (for example, “HelloWorld”) using the VS12 solution file:
  • Open OpenCLSamplesVS12.sln in Visual Studio 2013
  • Right-click the desired project from the “Solution Explorer” pane: for example, “HelloWorld”
    • On the popup menu, select “Set as StartUp Project”
  • Press Ctrl-F5 to build and run the project
  • If the project fails to run, try specifying the command arguments (Links to an external site.)
         --device cpu

and run the program again
Mac OS X

OpenCL development support is already installed in Xcode 5 and later (see (for details). You don’t need to install anything.


Follow these steps to install the AMD APP SDK on your Linux computer (this also applies for machines with Intel CPUs):