Error compiling ATI Streams SDK on Fedora

I’m working with some OpenCL related things, so I need to install ATI Streams SDK on this machine.

I downloaded the software from ATI Streams website, then extracted it and exported the necessary env vars:

$ tar zxvf /path/to/ati-stream-sdk-v2.3-lnx64.tgz
$ cd ati-stream-*/

At this point I had to patch several makefiles to compile the SDK on my Fedora 13, so here’s the patch. Save it as ati-streams.patch, then make sure you are in the ati-streams-sdk folder and launch:

$ patch -p1 < /path/to/ati-streams.patch
patching file samples/opencl/cl/app/BoxFilterGL/Makefile
patching file samples/opencl/cl/app/FluidSimulation2D/Makefile
patching file samples/opencl/cl/app/Mandelbrot/Makefile
patching file samples/opencl/cl/app/NBody/Makefile
patching file samples/opencl/cl/app/SimpleGL/Makefile
patching file samples/opencl/cl/app/Template/Makefile
patching file samples/opencl/cl/app/URNGNoiseGL/Makefile

Then you can launch make to compile the SDK.