Compiling OpenCL on Ubuntu?

Try locate libOpenCL. So If it is in one of the standard directories (most likely /usr/lib, or /usr/local/lib) you need to replace "--framework OpenCL" with "-lOpenCL". If g++ cannot find the lib you can tell g++ to look in a specific directory by adding "-L/path/to/library".

I wish I had my Linux to be more helpful... It is probably best if you redownload the ati-stream-sdk, after extracting it, open the Terminal and "cd /path/to/extracted/files"; in that directory execute make && sudo make install make you probably know this from windows, this compiles, whatever needs to be compiled && chains commands together, the following commands will only be executed if the first command succeeded sudo make install this will put the files in the expected places (sudo executes a command with superuser priviledges, you will have to enter your password) Hope that helps.

I've tried this, but then I get the error "fatal error: CL/opencl. H: No such file or directory" (one of the things that I #included in my program). – user492268 Oct 30 '10 at 20:56 1 maybe you need to tell g++ about the location of the "CL/" directory (you do this with a "dash capital i"): g++ -L/path/to/library -I/path/to/CL main.

Cpp -lOpenCL – bjoernz 8 Oct9 at 21:00 Now I'm getting: /usr/bin/ld: cannot find -lOpenCL collect2: ld returned 1 exit status. Maybe I should be asking whether I am supposed to have moved around files from the SDK folder into different parts of my filesystem. I apologize, I am new to Linux (just recently trying to switch from Windows).

– user492268 Oct 30 '10 at 21:07 And she compiles and runs! Unfortunately, I wrote this when OpenCL was still in the beta...so apparently some code changes are needed. Thanks for the help!

– user492268 Oct 30 '10 at 22:29 2 Oh, and in case anyone is in a similar position, the final line to compile was: "g++ -lOpenCL -L/stream-sdk-2.2/lib/x88 Oct8/ -I/stream-sdk-2.2/include/ file_name. C" – user492268 Oct 30 '10 at 22:30.

You might be missing the dynamic libraries from the dynamic linker configuration. Search for where the libraries are. Most likely /usr/lib, or /usr/local/lib.

Make sure the path location is also configured at one of these places: LD_LIBRARY_PATH - you can set it in you environment shell, like . Bashrc /etc/ld.so. Conf - you will need to call ldconfig to update the cache and it requires root access to change the file.

Try installing the deb package of the SDK here: forums.amd.com/forum/messageview.cfm?cat... It automatically sets up the little things you need to do.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions