kranti

Problem with Hello World Example

Discussion created by kranti on Nov 23, 2010
Latest reply on Nov 28, 2010 by himanshu.gautam

Hi,

I am using a Ubuntu 9.10 system, with ATI Stream SDK 2 with OpenCL Support.

I got the hello_world example from the http://developer.amd.com/gpu/ATIStreamSDK/pages/TutorialOpenCL.aspx link.

The SDK is installed at /home/devuser/opencl/ati-stream-sdk-v2.2-lnx32

The kernel is placed in lesson1_kernels.cl, and the cpp code is in Hello.cpp

When I run the command gcc -o hello_world -I$ATISTREAMSDKROOT/include -L$ATISTREAMSDKROOT/lib Hello.cpp -lOpenCL, I get the follwoing message

devuser@devuser-desktop:~/Desktop/opencl/hello$ gcc -o hello -I$ATISTREAMSDKROOT/include -L$ATISTREAMSDKROOT/lib Hello.cpp -lOpenCL
/usr/bin/ld: cannot find -lOpenCL
collect2: ld returned 1 exit status

Pl help me out.

 

devuser@devuser-desktop:~/Desktop/opencl/hello$ gcc -o hello -I$ATISTREAMSDKROOT/include -L$ATISTREAMSDKROOT/lib Hello.cpp -lOpenCL /usr/bin/ld: cannot find -lOpenCL collect2: ld returned 1 exit status

Outcomes