Home > Programming, Technology > Install OpenCL in Windows7 and configure in Visual Studio

Install OpenCL in Windows7 and configure in Visual Studio

Working with OpenCL is fun and very interesting. Here I want to give quick steps to install OpenCL support to your ATI(or AMD) graphics card.

First download the OpenCL SDK for AMD from here. This link looks like this

Select the apt version and 32/64 bit system. Download to hard disk and install it with the Express option. Once installed on to the hard disk, you can see “AMDAPPROOT” set in the environmental variables (Right click on My computer-> Properties -> Advanced System Settings ->Environmental Variables)

For 64 bit systems  “AMDAPPSDKROOT” shows C:\Program Files (x86)\AMD APP

For 32 bit sysems “AMDAPPSDKROOT” shows C:\Program Files\AMD APP

If you could see the above environmental variable set means SDK has been successfully installed.

Now we will see how to add openCL libraries to Visual Studio C++ projects

Follow the steps shown below.

Set the Additional include libraries to “$(AMDAPPSDKROOT)\include”

Then go to Linker int the properties window

Set the input -> Additional Dependencies under Linker properties to “OpenCL.lib” as shown in the next two figures.

Now you can easily compile and also run the OpenCL programs happily without any linker errors.

Happy coding!!!

  1. January 27, 2012 at 5:07 pm

    looks great. crystal clear!
    keep those tutorials coming 🙂

  2. Nik
    May 25, 2012 at 9:02 pm

    wonderful and professional – thanks

  3. sandeep
    October 22, 2012 at 6:45 pm

    What if I want to configure NVIDIA;s gpu for oOpenCL programming??

  4. Jack
    April 8, 2013 at 10:02 am

    The configuring part is quite clear. I struggled a bit in installing. Maybe you should give a little more details about the installation, but pretty good article otherwise. Had no problems in configuring openCL with Visual Studio.

  5. thomas
    November 18, 2014 at 9:35 am


    My laptop hardware information is as follows:

    OS: Windows 7 Professional Service Pack 1 CPU: Intel(R) Core(TM) i7-3540M CPU @ 3.00 GHz RAM: 16,0 GB Graphics: Intel(R) HD Graphics 4000

    I have attempted to install Intel SDK for OpenCL, but got an error as follows. ” OpenCL driver is missing or out of date.Obtain the relevant
    driver version at OpenCL Drivers webpage”

    I followed the link but it listed the followings:
    Contents •Intel® SDK for OpenCL™ Applications (that I try to install)
    •OpenCL driver for Intel® Iris™ and HD Graphics for Windows (64-bit and 32-bit) •OpenCL™ Runtime 14.2 for Intel® CPU and Intel® Xeon Phi™ coprocessors for Linux* (64-bit)
    •OpenCL™ Runtime 14.2 for Intel® CPU and Intel® Xeon Phi™ coprocessors for Windows* (64-bit) •OpenCL™ Runtime 14.2 for Intel® Core Procs for Windows* (32-bit).

    The rest doesn’t meet with laptop’s hardware spec. Any solution or suggestion ?

  1. August 25, 2011 at 1:38 pm
  2. April 22, 2012 at 4:21 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: