As I know this is the only way, you can use OpenCL on linux with ATI Graphics Card.
On this site you can download ATI Stream SDK for linux. Unpack the downloaded file somewhere in your home directory.
You have to download the icd-registration.tgz file also, and extract it into the root directory:
This will unpack 2 files in the /etc/OpenCL/vendors directory.
sudo tar xzf /path/to/file/icd-registration.tgz
Second, put these lines in your .bashrc:
Of course you have to change the "/path/to" things. These environmental variables are for 32 bit linux, figure it out for 64bit.
After this in the C file you have to include
In example OpenCL sources there are other variations for the include file, like OpenCL/OpenCL.h or CL/OpenCL.h, but never mind.
Now you can simply compile with
Here you need a new terminal in order to let bash know the changes in the .bashrc.
gcc source.c -o prog -lOpenCL
If you do not set the environmental variables you have to tell the compiler where are the needed files with
The LD_LIBRARY_PATH is needed for running an OpenCL program.
gcc source.c -o prog -I /path/to/ati-stream-sdk-v2.2-lnx32/include -L /path/to/ati-stream-sdk-v2.2-lnx32/lib/x86/ -lOpenCL