cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

nuttz96
Journeyman III

Noob question about window OpenCL installation

Hi, I am pretty new to these stuff and I desperately need some help.

I am trying to learn openCL for a school homework project in visual studio and was told that I need CL/OpenCL.h and OpenCL.lib in visual studio directories, and OpenCL.dll in the system folder.

I have installed the latest driver, and the ATI stream SDK 2.4 for window and found the OpenCL.dll neatly installed in the system folder but I cant find the CL folder nor OpenCL.lib anywhere. I found the Gl glut and glew lib and include files in the AMD APP folder, but no OpenCL stuff. 

What am I missing? please help.

0 Likes
3 Replies
afo
Adept I

Hi,

OpenCL.lib should be in the \Program Files\AMD APP\lib\x86 folder...

CL.h and others should be in the \Program Files\AMD APP\include\cl folder

You need to add the .lib files to your VS project in the linker input options and add the path for the includes in the c/c++ general options

best regards,

Alfonso

0 Likes

Hi nuttz96,

You can find a lots of samples in the Documents\AMD APP folder from where you can learn how to use OpenCL and have fun running them

0 Likes
cyndwith
Journeyman III

you might even have to set the environmental variables...

go through this link for the details of intializing and setting for visual studio.

www.guineacode.com/2010/linking-and-compiling-opencl/

0 Likes