cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

kralyk
Journeyman III

ATI Stream SDK linking problem

Hello,

I'm currently trying to install ATI Stream SDK 2.01 on my linux system.

But I don't want to install it the way it's described in the instructions, because LD_LIBRARY_PATH is generally not a good idea and I'd like the libs to be in a standard location (i.e. /usr/include/, /usr/lib/). Because otherwise I'd have to specifiy a harcoded location of ATI Stream SDK in every OpenCL project that I wish to compile.

So my installation now looks like this:

  • /usr/bin/clc
  • /usr/bin/llc
  • /usr/lib/libOpenCL.so
  • /usr/lib/OpenCL/vendors/libatiocl64.so
  • /usr/lib/bin/x86_64 -> symlink to /usr/bin
  • /usr/lib/lib/x86_64 -> symlink to /usr/lib
  • /usr/include/CL/cl*.h <- OpenCL header files
  • /usr/include/cal*.h <- CAL header files
  • /usr/share/amdstream/* <- the SDK

 

I can compile all the samples OK, but when I run a sample, it cannot compile CL code due to a linking error (regretably I have no more info that that).

Anyone knows what did I possibly miss?

Any help much appreciated...

 

0 Likes
5 Replies
nou
Exemplar

if you use ubuntu you can use my packages which you can find link in my signature.

or try move clc and llc into /usr/bin/x86_64 or /usr/bin/x86 directory according to your architecture. if it did not help then set ATISTREAMSDK enviroment variable to /usr/bin

0 Likes
kralyk
Journeyman III

Thanks for answer, no I dont use Ubuntu, I use Arch linux and Im actually trying to put up a package for this distro.



I tried what you suggested but neither helped 😕

How did you solve this in your Ubuntu packages?

 

 

 

0 Likes

kralyk,

Are you able to run the packages without copying them?

 

0 Likes

try unpack my packages. it is simple ar archive an then gz archive.

0 Likes
kralyk
Journeyman III

Ok, I solved this now, with a bit of help of looking in your debs.

I made the SDK install in /opt/ as a whole,

copy headers to /usr/include and symlink bins and libs in /usr/bin and /usr/lib

It works ok now. At least as far as I have tested.

Thanks for help 😉

 

 

 

0 Likes