libcula.so not found (Confused)

General CULA Dense (LAPACK & BLAS) support and troubleshooting. Use this forum if you are having a general problem or have encountered a bug.

libcula.so not found (Confused)

Postby mjadidi » Wed Jun 20, 2012 5:52 am

Hey all,

I am trying to use CULA for first time with python! I proceeded as installation steps which are in the website but still after trying to compile my code I got the following error!

Code: Select all

Traceback (most recent call last):
  File "matrixMulti-scikits.py", line 4, in <module>
    import scikits.cuda.linalg as linalg
  File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/linalg.py", line 16, in <module>
    import cula
  File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/cula.py", line 25, in <module>
    raise RuntimeError('%s not found' % _libcula_libname)
RuntimeError: libcula.so not found




I add CULA_LIB_PATH_64 to my LD_LIBRARY_PATH environment variable and also other PATH ..this is my .bashrc file :

#for CULA
export CULA_ROOT="/usr/local/cula"


#------
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}:${CULA_ROOT}/lib64:${CULA_ROOT}/lib64"

export PATH=${CULA_ROOT}/bin:${PATH}
export PATH=${CULA_ROOT}/bin64:${PATH}
export PATH=${CULA_ROOT}/include:${PATH}

I believe maybe the problem is the ld.so.conf file which I dont what it is and how should I change it!

so can you tell me what is wrong here.?!

by the way I am running cuda 4.1 on ubuntu 11.4
mjadidi
 
Posts: 15
Joined: Wed Jun 20, 2012 2:58 am

Re: libcula.so not found (Confused)

Postby kyle » Wed Jun 20, 2012 7:37 am

Have you tried to compile and run any of the C examples included with CULA?
kyle
Administrator
 
Posts: 301
Joined: Fri Jun 12, 2009 7:47 pm

Re: libcula.so not found (Confused)

Postby john » Wed Jun 20, 2012 9:22 am

Substitute "bin" for "lib" and you should be ok.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: libcula.so not found (Confused)

Postby mjadidi » Thu Jun 21, 2012 1:40 pm

I havent tried any c code! This is the first code I tried to compile..


I will be in lab on monday and try it. Thanks


P.s: So it is not important if I dont edit the conf file?



** : changing to lib64 didnt solve the problem! :(

This my PATH :

/usr/local/cuda/bin:/usr/local/cula/include:/usr/local/cula/lib64:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

and LD_LIBRARY_PATH:
:/usr/local/cula/lib64:/usr/local/cula/lib64:/usr/local/cuda/lib64:/usr/local/cuda/lib64
mjadidi
 
Posts: 15
Joined: Wed Jun 20, 2012 2:58 am

Re: libcula.so not found (Confused)

Postby mjadidi » Mon Jun 25, 2012 1:51 am

kyle wrote:Have you tried to compile and run any of the C examples included with CULA?


yes , I compile the c code..

is it possible there is miss match between python library and my cula version ?
mjadidi
 
Posts: 15
Joined: Wed Jun 20, 2012 2:58 am

Re: libcula.so not found (Confused)

Postby mjadidi » Mon Jun 25, 2012 2:41 am

the problem was that there was no libcula.so in the lib64 directory . what I did just make a linker from libcula_core to libcula.so but after that now I'm getting this error :

File "matrixMulti-scikits.py", line 4, in <module>
import scikits.cuda.linalg as linalg
File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/linalg.py", line 16, in <module>
import cula
File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/cula.py", line 39, in <module>
_libcula.culaGetStatusString.restype = ctypes.c_char_p
File "/usr/lib/python2.7/ctypes/__init__.py", line 366, in __getattr__
func = self.__getitem__(name)
File "/usr/lib/python2.7/ctypes/__init__.py", line 371, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/cula/lib64/libcula.so: undefined symbol: culaGetStatusString



why there was no libcula.so in my lib64 folder in the first place?
mjadidi
 
Posts: 15
Joined: Wed Jun 20, 2012 2:58 am

Re: libcula.so not found (Confused)

Postby john » Mon Jul 02, 2012 9:33 am

We changed quite a while ago to remove libcula.so and to break it into pieces: libcula_core.so and libcula_lapack.so. It seems that the python code you are using hasn't followed the change. I should have noticed this right from the first post, my apologies that I didn't - the names tend to run together after a while.
john
Administrator
 
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm


Return to CULA Dense Support

Who is online

Users browsing this forum: No registered users and 2 guests

cron