nOzanaix

About vs2008

Discussion created by nOzanaix on Nov 25, 2009
Latest reply on Nov 30, 2009 by nOzanaix

I have see a lot of topic and web for a long time about Visual Studio 2008 with how to use OpenCL.

I use Window7 with Athlon 5600+ and HD4870.

I have install 9.11 driver and ati-stream-sdk-v2.0-beta4-vista-win7-64 both of dev and sample. When I use VS i have add 2 directory that is

: c:\Program Files (x86)\ATI Stream\include and

: c:\users\***\Documents\ATI Stream\include too

my code is just

 

#include <CL/cl.hpp>

int main() {

cl_int err;

cl_uint nReturn;

cl_device_id gId;

err = clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU, 1, &gId, &nReturn);

// ERROR here at above

return 0;

}



 

ERROR is

error LNK2019: unresolved external symbol __imp__clGetDeviceIDs@24 referenced in function _main

and

fatal error LNK1120: 1 unresolved externals

 

What should I do, Plz help.

Thank for replying.

#include <CL/cl.hpp> int main() { cl_int err; cl_uint nReturn; cl_device_id gId; err = clGetDeviceIDs(NULL, CL_DEVICE_TYPE_GPU, 1, &gId, &nReturn); return 0; }

Outcomes