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!!!

About these ads
  1. January 27, 2012 at 5:07 pm | #1

    looks great. crystal clear!
    keep those tutorials coming :)

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

    wonderful and professional – thanks

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

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

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

    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.

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

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 )

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s

%d bloggers like this: