Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: /usr/local/cula/lib64/libcula.so: undefined symbol: culaGetStatusString #17

Closed
llvll0hsen opened this issue Jun 25, 2012 · 12 comments

Comments

@llvll0hsen
Copy link

hello all,

I am new in cuda and since I started I am stuck with bunch of problem.after installing scikits and cula I get erroe when I want to run sample test,which is :

Traceback (most recent call last):
File "", line 1, in
ImportError: No module named intergrate

import scikits.integrate
Traceback (most recent call last):
File "", line 1, in
ImportError: No module named integrate
import scikits.cuda.integrate
Traceback (most recent call last):
File "", line 1, in
File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/integrate.py", line 15, in
from misc import select_block_grid_sizes, init, get_current_device
File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/misc.py", line 18, in
import cula
File "/usr/local/lib/python2.7/dist-packages/scikits/cuda/cula.py", line 39, in
_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

I am getting this error when I m trying to import this modules :

misc

intergrate

linalg

special

I am using the free edition of CULA DENSE and I should note that I am able to run the c codes cula examples.

I am appreciate any help!

@lebedov
Copy link
Owner

lebedov commented Jun 26, 2012

What are the version numbers of the CUDA and CULA packages that you are using?

@llvll0hsen
Copy link
Author

CUDA 4.1 and cula R14

On Tue, Jun 26, 2012 at 6:45 AM, Lev Givon <
reply@reply.github.com

wrote:

What are the version numbers of the CUDA and CULA packages that you are
using?


Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

@lebedov
Copy link
Owner

lebedov commented Jun 26, 2012

Is /usr/local/cula/lib64/libcula.so a link to some other file? CULA R14 shouldn't contain any such file; it might be left over from an installation of an earlier release of CULA.

@llvll0hsen
Copy link
Author

yes it doesnt have it so I just make a linker to libcula.core.so because
there where no libcula.so...so what should I do to fix it?

Thanks

On Tue, Jun 26, 2012 at 2:38 PM, Lev Givon <
reply@reply.github.com

wrote:

Is /usr/local/cula/lib64/libcula.so a link to some other file? CULA R14
shouldn't contain any such file; it might be left over from an installation
of an earlier release of CULA.


Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

@llvll0hsen
Copy link
Author

I mean libcula_core.so

On Tue, Jun 26, 2012 at 2:48 PM, mohsen jadidi mohsen.jadidi@gmail.comwrote:

yes it doesnt have it so I just make a linker to libcula.core.so because
there where no libcula.so...so what should I do to fix it?

Thanks

On Tue, Jun 26, 2012 at 2:38 PM, Lev Givon <
reply@reply.github.com

wrote:

Is /usr/local/cula/lib64/libcula.so a link to some other file? CULA R14
shouldn't contain any such file; it might be left over from an installation
of an earlier release of CULA.


Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

Mohsen Jadidi

@lebedov
Copy link
Owner

lebedov commented Jun 26, 2012

I recommend removing the link altogether; most of the functions scikits.cuda loads from CULA are in libcula_lapack.so in R14, not libcula_core.so. If you do need to keep the link for some reason, try installing the latest scikits.cuda code from GitHub; I modified the CULA loader to look for libcula_lapack.so before libcula.so.

@llvll0hsen
Copy link
Author

what do you mean by removing all links? you mean libcula_core.so and
libcula_so?

I how should I do the same modification?

today I re-install the scikits.cuda from the GitHub but still have the same
problem! I first remove all directories and files from my dist-packages
folder and then install it again with python setup.py install

am I missing something!?

On Tue, Jun 26, 2012 at 3:35 PM, Lev Givon <
reply@reply.github.com

wrote:

I recommend removing the link altogether; most of the functions
scikits.cuda loads from CULA are in libcula_lapack.so in R14, not
libcula_core.so. If you do need to keep the link for some reason, try
installing the latest scikits.cuda code from GitHub; I modified the CULA
loader to look for libcula_lapack.so before libcula.so.


Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

@lebedov
Copy link
Owner

lebedov commented Jun 26, 2012

I meant that you should remove the link libcula.so -> libcula_core.so from the directory /usr/local/cula/lib64/; the directory should contain the following files:

lapackcpu.so
libcublas.so -> libcublas.so.4
libcublas.so.4 -> libcublas.so.4.1.28
libcublas.so.4.1.28
libcudart.so -> libcudart.so.4
libcudart.so.4 -> libcudart.so.4.1.28
libcudart.so.4.1.28
libcula_core.so
libcula_lapack_fortran.so
libcula_lapack_link.so
libcula_lapack_pgfortran.so
libcula_lapack.so
libcula_scalapack.so

@llvll0hsen
Copy link
Author

Thanks,ok I did it, but how can I have clean installation of scikits? I
tried to install the development versions from the Github but I m still
have the problem with libcula.so

On Tue, Jun 26, 2012 at 8:57 PM, Lev Givon <
reply@reply.github.com

wrote:

I meant that you should remove the link libcula.so -> libcula_core.so from
the directory /usr/local/cula/lib64/; the directory should contain the
following files:

lapackcpu.so
libcublas.so -> libcublas.so.4
libcublas.so.4 -> libcublas.so.4.1.28
libcublas.so.4.1.28
libcudart.so -> libcudart.so.4
libcudart.so.4 -> libcudart.so.4.1.28
libcudart.so.4.1.28
libcula_core.so
libcula_lapack_fortran.so
libcula_lapack_link.so
libcula_lapack_pgfortran.so
libcula_lapack.so
libcula_scalapack.so

Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

@lebedov
Copy link
Owner

lebedov commented Jun 27, 2012

If you install it as described in the documentation, the relevant files should be updated properly (how did you initially install it?) Note that if you are still observing the undefined symbol error you initially reported, then /usr/local/cula/lib64/libcula.so still exists.

@llvll0hsen
Copy link
Author

initially I installed it with pip..but then try to re-install it
from manually. I changed the priority to libcula_lapack.so and now it
works fine. But I was just wondering how should I re-install it again in
case that I need to do it.

Thanks for your help

On Wed, Jun 27, 2012 at 8:52 PM, Lev Givon <
reply@reply.github.com

wrote:

If you install it as described in the documentation, the relevant files
should be updated properly (how did you initially install it?) Note that if
you are still observing the undefined symbol error you initially reported,
then /usr/local/cula/lib64/libcula.so still exists.


Reply to this email directly or view it on GitHub:
#17 (comment)

Mohsen Jadidi

@lebedov
Copy link
Owner

lebedov commented Jul 2, 2012

If you are installing the package manually in the same destination as pip, I don't think it should matter. It's probably best to stick to one installation method in general, though.

@lebedov lebedov closed this as completed Jul 2, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants