|
From: | Dmitri A. Sergatskov |
Subject: | Re: need test run on Mac |
Date: | Fri, 28 Feb 2014 11:59:57 -0600 |
On 02/27/2014 10:25 PM, Dmitri A. Sergatskov wrote:If you use LD_PRELOAD, then I would expect it to fail with any BLAS
I usually compile against the reference blas and then use LD_PRELOAD
trick to overload shared library symbols.
because the default XERBLA will be loaded before Octave has a chance
to load its own version of that function.
Here is what I see on my system:
$ ldd /usr/bin/octave | grep blas
libblas.so.3 => /usr/lib/libblas.so.3 (0x00007fd78ceb5000)
coredump:2901> LD_PRELOAD=/usr/lib/libblas.so.3 /usr/bin/octave -qf$
octave:1> foo
** On entry to barf parameter number -7 had an illegal value
I.e., Octave exits immediately because that's what the default XERBLA
does.
Hmm, is there some way we can prevent this from happening and still
have Octave link correctly? Currently, xerbla is in liboctave. I'll
see what happens if we link it directly with the main Octave
executable instead of putting it in a separate shared library.
jwe
[Prev in Thread] | Current Thread | [Next in Thread] |