undefined symbol: culaGetOptimalPitch

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

undefined symbol: culaGetOptimalPitch

Postby timeu » Sat Apr 16, 2011 10:37 am

Hi all
I tried to evaluate PyCULA on my machine (core i7, Quadro FX 580).

However when importing PyCULA (from PyCULA.cula import *) I get following error:

/usr/local/cula/lib64/libcula.so: undefined symbol: culaGetOptimalPitch

I am using the basic version of cula 2.1. Is this an issue of the basic version?

Here are some additional information on the setup:
CUDA3.2 toolkit and latest release driver (260.19.26)
PyCUDA trunk
cula 2.1 basic

ldd on libcula.so:
ldd /usr/local/cula/lib64/libcula.so
linux-vdso.so.1 => (0x00007fffccdff000)
libstdc++.so.6 => /usr/lib/libstdc++.so.6 (0x00007ffc5e997000)
libcublas.so.3 => /usr/local/cula/lib64/libcublas.so.3 (0x00007ffc5b905000)
libcudart.so.3 => /usr/local/cula/lib64/libcudart.so.3 (0x00007ffc5b6c9000)
libgomp.so.1 => /usr/lib/libgomp.so.1 (0x00007ffc5b4bb000)
librt.so.1 => /lib/librt.so.1 (0x00007ffc5b2b3000)
libm.so.6 => /lib/libm.so.6 (0x00007ffc5b02f000)
libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x00007ffc5ae18000)
libpthread.so.0 => /lib/libpthread.so.0 (0x00007ffc5abfb000)
libc.so.6 => /lib/libc.so.6 (0x00007ffc5a877000)
/lib64/ld-linux-x86-64.so.2 (0x00007ffc6063c000)
libdl.so.2 => /lib/libdl.so.2 (0x00007ffc5a673000)

thanks in advance
Posts: 1
Joined: Fri Apr 15, 2011 5:24 am

Re: undefined symbol: culaGetOptimalPitch

Postby john » Mon Apr 18, 2011 6:44 am

I do believe that PyCULA is meant to be used with CULA Premium.

The calls to culaGetOptimalPitch aren't necessary for functionality, so you could define your own version to return *pitch equal to rows. That said, in many cases, culaGetOptimalPitch will lead to a sometimes significant speed gain over this approach.
Posts: 587
Joined: Thu Jul 23, 2009 2:31 pm

Re: undefined symbol: culaGetOptimalPitch

Postby somusshabadi » Fri Nov 18, 2011 8:17 am

Hi all,

I am having exactly the same error as above.
somuss@jackie:~/louistheran-pycula-example/PyCULA/examples$ python cula_with_blas_example.py
Traceback (most recent call last):
File "cula_with_blas_example.py", line 12, in <module>
from PyCULA.cula import *
File "/usr/local/lib/python2.5/site-packages/PyCULA-0.95a1-py2.6.egg/PyCULA/cula.py", line 140, in <module>
_culaGetOptimalPitch = libcula.culaGetOptimalPitch
File "/usr/local/lib/python2.5/ctypes/__init__.py", line 361, in __getattr__
func = self.__getitem__(name)
File "/usr/local/lib/python2.5/ctypes/__init__.py", line 366, in __getitem__
func = self._FuncPtr((name_or_ordinal, self))
AttributeError: /usr/local/cula/lib64/libcula.so: undefined symbol: culaGetOptimalPitch

I have installed CULA Dense R12 (Free edition) on Ubuntu. How do i resolve this error?

Thanking you in advance !

Posts: 1
Joined: Thu Nov 17, 2011 9:42 am

Re: undefined symbol: culaGetOptimalPitch

Postby john » Mon Dec 05, 2011 11:53 am

This routine is not included in the free version of CULA. This should be accounted for by PyCULA. You can edit the PyCULA code to work around this requirement.
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