undefined symbol: cblas_dswap on import

78 views
Skip to first unread message

charlesg

unread,
Oct 31, 2011, 10:57:28 AM10/31/11
to cvx...@googlegroups.com
We had performance issues with Numpy so I recompiled ATLAS (3.8.4),  BLAS and lapack-3.1.1. Now that Numpy uses ATLAS it's much faster on dot() calls but I can't use cvxopt anymore. If I import cvxopt this error (though it seem to build and install fine):

>>> import cvxopt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python2.7/site-packages/cvxopt/__init__.py", line 31, in <module>
    import base
ImportError: /usr/lib64/liblapack.so: undefined symbol: cblas_dswap

Any ideas what's missing or where the incompatibility is?

Martin

unread,
Oct 31, 2011, 11:12:51 AM10/31/11
to cvx...@googlegroups.com
You may have to recompile CVXOPT (make sure to link against atlas, blasf77, lapack, and gfortran). Did you build a full lapack library when you compiled ATLAS? Also, what platform are you using?

Anthony Morrison

unread,
Oct 31, 2011, 11:44:59 AM10/31/11
to cvx...@googlegroups.com
Even though you think you've created your .so correctly, you've missed something.

see (for a similar problem):

http://permalink.gmane.org/gmane.comp.python.scientific.user/9770

ldd is your friend.

--
You received this message because you are subscribed to the Google Groups "CVXOPT" group.
To view this discussion on the web visit https://groups.google.com/d/msg/cvxopt/-/PPXNsxM7xM4J.
To post to this group, send email to cvx...@googlegroups.com.
To unsubscribe from this group, send email to cvxopt+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/cvxopt?hl=en.

charlesg

unread,
Nov 2, 2011, 9:40:05 AM11/2/11
to cvx...@googlegroups.com
I did compile the full lapack... Turns out I needed to tweek the setup.py and I addeded cblas and atlas in the list of libs to link against and it seems to work.

Reply all
Reply to author
Forward
0 new messages