Yade dependency libopenblas breaks octave

Bug #1480173 reported by xyzdragon
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Yade
Invalid
Undecided
Unassigned

Bug Description

When openblas is installed Octave quits with a segmentation fault when trying to invert matrices sized 10x10 or bigger.
Openblas is a dependency for libyade.
See also https://savannah.gnu.org/bugs/?45651

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

Thank you for reporting but this actually not a bug related to yade since the problem is between octave and openblas.
Bruno

Changed in yade:
status: New → Invalid
Revision history for this message
xyzdragon (xyzdragon) wrote :

I reported it here, because OpenBLAS doesn't even seem to be necessary! (at least for the yade examples I have) Well I found this out after posting this bug, but anyway
I solve my problem by hardcopying the original BLAS files (in order to not make apt hiccup because of missing dependencies):
sudo cp /usr/lib/libblas/libblas.so.3 /usr/lib/libblas.so.3
sudo cp /usr/lib/liblapack/liblapack.so.3 /usr/lib/liblapack.so.3

Revision history for this message
Bruno Chareyre (bruno-chareyre) wrote :

OpenBLAS is an alternative of BLAS, as such it is not strictly necessary, you are right.
I guess the yade package could allow different variants, but it would be some more maintainance work.
There are so many incompatible combinations when it come to variants of blas+lapack+SuiteSparse+metis+eigen that we better don't play this game.
Note that if you compile you can disable the modules that need OpenBlas. If you need those modules (fluid coupling) then you also need openblas because it is MUCH faster.

I suspect your problem with octave may be fixed in recent versions already (you didn't tell us anything about your versions btw). Actually OpenBlas has benchmarks for octave [1], so...
Besides you can install concurrent versions of blas and set priority in order to have octave load another blas instead of openblas.
That's how I solved Numpy/openblas conflicts before (sudo update-alternatives --config libblas.so / ubuntu only maybe?).

Bruno

[1] https://github.com/xianyi/OpenBLAS/commit/8614057ea9d10a14d7986935150fc4fa78846cc6

Revision history for this message
xyzdragon (xyzdragon) wrote :

openblas 0.2.12-1
lapack 3.5.0-4
eigen 3.2.2-3
python-minieigen 0.41~dfsg~bzr51
Octave 3.8.2
Yade 1.12.0
Debian 8.1
(everything should be packages from the stable Debian repository + Yade repository: yade-dem.org/packages)

Thank your for your suggestions.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.