cancel
Showing results for 
Search instead for 
Did you mean: 

Archives Discussions

mschachter
Journeyman III

no symbols in libOpenCL.so?

Can't link to libOpenCL.so in ubuntu 11.10

I installed AMDAPPSDK v.25 (64bit ) on Ubuntu 11.10, but there are no symbols in libOpenCL.so:

username@host:/opt/AMDAPP/lib/x86_64$  nm libOpenCL.so.1

nm: libOpenCL.so.1: no symbols

When I try to link to the library, I get "No symbol resolved" errors such as:

ng.cpp:(.text+0x175): undefined reference to `clCreateBuffer'

I assume this is because there are no symbols in libOpenCL.so... There may be problems with my setup but it seems like there should at least be some symbols in libOpenCL.so so I can link executables to it.

Any ideas? Has anyone successfully run AMDAPPSDK v2.5 on Ubuntu 11.10?

Some more info:

Hardware Setup:

  - monitor is hooked up to the onboard video to the motherboard, with an intel i7 2600K

 -  AMD Radeon HD 6870 on a PCIe slot for computational purposes

OS: Ubuntu 11.10

Driver Version: Recent Catalyst install, might be broken but I don't think that explains missing symbols

APPSDK Version: AMD-APP-SDK-v2.5-lnx64.tgz

Installation Output:

sudo ./Install-AMD-APP.sh

64-bit Operating System Found..
 Starting Installation of AMD APP....
 SDK package name is :AMD-APP-SDK-v2.5-RC2-lnx64.tgz
Current directory path is  : /home/cheese63/downloads/temp
Untar command executed succesfully, The SDK package available
Untar command executed succesfully, The ICD package available
Copying files to /opt/AMDAPP/ ...
SDK files copied successfully at /opt/AMDAPP/
Updating Environment vairables...
32-bit path is :/opt/AMDAPP/lib/x86
64-bit path is :/opt/AMDAPP/lib/x86_64
Environment vairables updated successfully
/sbin/ldconfig.real: Can't stat /lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
/sbin/ldconfig.real: Path `/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Path `/usr/lib/x86_64-linux-gnu' given more than once
/sbin/ldconfig.real: Cannot stat /usr/lib32/libasprintf.so: No such file or directory
Global environment vairables Initialized
AMD APP installation  Completed
>>Reboot required to reflect the changes
>>Please refer the 'Log file' in the same directory
>>Refer the README.txt in the same directory for more info

Thanks!

 

0 Likes
5 Replies
nou
Exemplar

well libOpenCL.so.1 have only dynamic symbols.

objdump -T libOpenCL.so.1

try use my packages.

0 Likes

Thanks Nou! I installed your packages from here:

http://orwell.fiit.stuba.sk/~nou/

The runtime .deb creates a file /usr/lib/libOpenCL.so and the dev .deb creates /usr/include/CL/*, which is great - however, I still get linker errors when compiling my code:

g++ -c -o clutils.o -Iinclude -I/usr/local/include -I/usr/include -L/usr/lib -lOpenCL clutils.cpp
g++ -o cltest -Iinclude -I/usr/local/include -I/usr/include -L/usr/lib -lOpenCL cltest.cpp clutils.o
/tmp/ccODEYJZ.o: In function `main':
cltest.cpp:(.text+0x175): undefined reference to `clCreateBuffer'

Off the top of your head do you have any ideas? This code compiled fine on a different ubuntu system when I had an NVidia card, but doesn't work now.

   mike

0 Likes

try g++ -o cltest -Iinclude -I/usr/local/include -I/usr/include -L/usr/lib -lOpenCL clutils.o cltest.cpp

or change order of -lOpenCL cltest.cpp clutils.o

 

0 Likes

Thanks Nou! That specific order didn't work but this one did:

 

g++ -o cltest clutils.o -lOpenCL cltest.cpp

 

Not sure how things got switched up in the interim, but happens to me sometimes 🙂

 

Thanks again!

 

 

0 Likes

Also, just to elaborate - the problem was the order in which I compiled things, not a problem with AMDSDK or Nou's packages.

0 Likes